Search Unity

Bug NullReferenceException: Object reference not set to an instance of an object

Discussion in 'Scripting' started by Lamasgaming, Oct 1, 2020.

  1. Lamasgaming

    Lamasgaming

    Joined:
    Mar 8, 2020
    Posts:
    9
    Hello,

    I keep getting this message in my console but my game works just fine...It does not take me to any line on my script.

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Graphs.Edge.WakeUp () (at <a1ba6e352ff94393b921ff1ab74c7761>:0)
    UnityEditor.Graphs.Graph.DoWakeUpEdges (System.Collections.Generic.List`1[T] inEdges, System.Collections.Generic.List`1[T] ok, System.Collections.Generic.List`1[T] error, System.Boolean inEdgesUsedToBeValid) (at <a1ba6e352ff94393b921ff1ab74c7761>:0)
    UnityEditor.Graphs.Graph.WakeUpEdges (System.Boolean clearSlotEdges) (at <a1ba6e352ff94393b921ff1ab74c7761>:0)
    UnityEditor.Graphs.Graph.WakeUp (System.Boolean force) (at <a1ba6e352ff94393b921ff1ab74c7761>:0)
    UnityEditor.Graphs.Graph.WakeUp () (at <a1ba6e352ff94393b921ff1ab74c7761>:0)
    UnityEditor.Graphs.Graph.OnEnable () (at <a1ba6e352ff94393b921ff1ab74c7761>:0)
     
  2. WarmedxMints

    WarmedxMints

    Joined:
    Feb 6, 2017
    Posts:
    1,035
    Seems like a bug in the editor. Does it persist when you restart the editor?
     
  3. cbfunky

    cbfunky

    Joined:
    Sep 11, 2020
    Posts:
    24
    I have to say I've encountered very strange editor asserts from the start of this week, they usually go away with a restart.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,736
    Agree with WarmedxMints... but also check if all your packages are up to date, and perhaps do a Reimport-All from the Project panel. Otherwise it can likely just be ignored.
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,736
    It's probably just because 2020.
     
    AlterMannn, Joe-Censored and cbfunky like this.
  6. cbfunky

    cbfunky

    Joined:
    Sep 11, 2020
    Posts:
    24
    truth
     
    Kurt-Dekker likes this.