How do I fix this error? I can't build my games anymore, thanks to this.

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Graphs.Edge.WakeUp () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Edge.cs:114)
UnityEditor.Graphs.Graph.DoWakeUpEdges (System.Collections.Generic.List1 inEdges, System.Collections.Generic.List1 ok, System.Collections.Generic.List`1 error, Boolean inEdgesUsedToBeValid) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:387)
UnityEditor.Graphs.Graph.WakeUpEdges (Boolean clearSlotEdges) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:286)
UnityEditor.Graphs.Graph.WakeUp (Boolean force) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:272)
UnityEditor.Graphs.Graph.WakeUp () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:250)
UnityEditor.Graphs.Graph.OnEnable () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:245)

1 Like

Try closing the project, deleting the library folder, and re-opening the project

2 Likes

In Android build I found issue about gradle error when upgrade to lastest Unity.

Will try to remove library that Gambit-MSpilitz said.

I’ve done the first one… but it does this to all my projects… even when i make a new one.

(I’m building PC only)

Here’s another one I’m getting:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GridPaintingState.UnregisterPainterInterest (UnityEngine.Object painter) (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintingState.cs:197)
UnityEditor.GridPaintPaletteWindow.OnDisable () (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintPaletteWindow.cs:565)

If you’re getting errors on blank projects, maybe there is something wrong with your Unity install itself or your OS?

1 Like

I just barely started two new projects… AGAIN!!! And it gave me these errors AGAIN!!!

(Unity 2D)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GridPaintingState.UnregisterPainterInterest (UnityEngine.Object painter) (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintingState.cs:197)
UnityEditor.GridPaintPaletteWindow.OnDisable () (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintPaletteWindow.cs:565)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GridPaintingState.UnregisterPainterInterest (UnityEngine.Object painter) (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintingState.cs:197)
UnityEditor.GridPaintPaletteWindow.OnDisable () (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintPaletteWindow.cs:565)

(Unity 3D)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GridPaintingState.UnregisterPainterInterest (UnityEngine.Object painter) (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintingState.cs:197)
UnityEditor.GridPaintPaletteWindow.OnDisable () (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintPaletteWindow.cs:565)

That’s what I’m thinking…

What version of Unity do you used?

OK it might sounds super weird and i dont know why it happened but i fixed this issue. A couple of days ago my storage went full and i checked my files when i realized unity already took 40…but not from the local folder but in a hidden one, called app_data…i didnt really have nothing to lose so i deleted all my files, i thought i will reinstall unity later i fixed my pc. but i didnt have to uninstall, even with this 40gb lost, everything seems working fine…
so now i get this problem as yours and i just deleted everything from the app_data, unity subfolder.
well…fingers crossed it stays

I keep getting a similar error, using different Unity versions and working of different computers. I’ve copied the message I get bellow. The Animator window will not show any graphics because of this. Reseting Unity everytime I need to use the Animator window is really anoyng. Hoping someone will come up with a fix.

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

I am getting the same error. It started when working on the animator. Help please

1 Like

i get the same error. I Think that the error is a unity itself error not a script coded by us also it bug my animations and teleport them in another place like the hand animation when it pay it teleport to the sky and i see in preview and the animation work fine.
(I NEED HELP)

I find the resolution in this post.
Seem to be it isn’t an error by your code. it is from modules of unity editor.
I try to restart my project like this post recommends and it is clear. Good luck guys.

thnx it worked although took long to load