Search Issue Tracker

Fixed in 2019.1

Fixed in 2019.2

Votes

49

Found in

2018.3.11f1

2019.1.0b2

Issue ID

1147234

Regression

Yes

"ArgumentException: Object at index 0 is null" thrown when entering play mode with two Inspector windows and an attached script

Inspector Framework

-

How to reproduce:
1. Create a new project
2. Create a c# script and attach it to any object in the Hierarchy window
3. Add second Inspector window
4. Enter Play mode
5. Observe Console window

Expected result: no errors are thrown
Actual result: "ArgumentException: Object at index 0 is null" is thrown

Reproducible with: 2019.1.0b2, 2019.1.0f2, 2019.2.0a13, 2019.3.0a1
Not reproducible with: 2017.4.26f1, 2018.3.14f1, 2019.1.0b1

Comments (14)

  1. 3a7ef830c9b6b4beed3af98b8384c58a?d=mm

    tconkling

    Oct 14, 2019 17:56

    This continues to happen for me in 2019.1.14f1 on Mac.

    Is there any chance of getting the fix backported to 2019.1?

  2. Df257bc1bc9c013cabd12a80a32516c6?d=mm

    jrDev

    Aug 30, 2019 16:37

    Hello,

    This still happens in MacOS Unity 2019.2.0f1

    I had 2 Inspectors open. To fix I had to close both inspectors.

    Thanks,
    jrDev

  3. 89172c3d6482e9ba1f584159111d520e?d=mm

    LorenzoNuvoletta

    Aug 26, 2019 04:00

    In 2019.2.0 it happens when you have 2 inspectors open.

  4. B5ef7e1804ee8476fd1a4edbf89cbe10?d=mm

    pryankster

    Jul 21, 2019 02:47

    Though I hate to add a "me, too" to this bug: I have noticed that I get the error when I have two inspectors open, and the FIRST inspector is showing (locked or unlocked) a GameObject with a script attached. No script? no error.

  5. 9746878fd170891307bb46706af297a8?d=mm

    MrLucid72

    Jul 15, 2019 14:57

    Still happens in Unity 2019.1.8f1, easily repro'd by the multiple mentions above ^

  6. 1cf02473f9789352ba965f44cc707b08?d=mm

    Adrian-Miasik

    Jul 15, 2019 00:31

    I've also managed to get this error on 2019.3.0a3 - Removing my second inspector window has prevented the error from showing up in the console and allows my editor scripts to execute properly.

  7. 9d4bd236d332dd88c5f1f215be52916e?d=mm

    Zahidylin_Marat

    Jul 09, 2019 05:58

    The same issue after upgrading project from Unity 2018 to 2019.1.9f1.

    Fix:
    I had 2 Inspector tabs open. If you close one the error should go away.

  8. D492be3777561a479e351d1c860f4eef?d=mm

    joonturbo

    Jul 05, 2019 17:05

    happens every time I hit play on 2019.1.8f1 on macOS

  9. A8bcbac7e3e961b5269a6a6ceecee141?d=mm

    Blenderik

    Jun 17, 2019 12:51

    I only use one Editor and this exact error happens everytime I press play in all my projects since upgrade to 2019.

  10. F1bbbf82f5d3c362abeb6b39a192190a?d=mm

    Hexagon-Neuron

    May 10, 2019 15:12

    Also getting the same issue. Even on brand new projects. 2019.1 and 2019.2, only 1 inspector window open.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.