Search Issue Tracker
Duplicate
Votes
0
Found in
2018.3.0b11
2019.1.0a9
2019.1.0a10
Issue ID
1102395
Regression
Yes
[Improved Prefabs] Errors occurs on selecting "No Overrides" when an override has been applied through override window
Null reference exception occurs on selecting "No Overrides" option in override window after an override has been applied through override window
Steps to Repro:
1. Open Unity or attached project
2. Hierarchy > right click > create empty
3. Drag game object to project window to create a prefab
4. Add any component or create child game object to the instance
5. Click override > select overridden property or object
6. Apply > Apply to prefab
7. Click on no overrides text in override window
Actual Result:
Null Reference exception occurs
Environment:
Windows and Mac
Occurring with:
2019.1.0a10, 2019.1.0a9, 2018.3.0b12 (e8a09cb958c6), 2018.3.0b11
Working with:
2018.3.0b10, 2019.1.0a8
Stack trace:
Error 1:
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Error 2:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PrefabOverridesTreeView.RowGUI (UnityEditor.IMGUI.Controls.TreeView+RowGUIArgs args) (at C:/buildslave/unity/build/Editor/Mono/Prefabs/PrefabOverrides/PrefabOverridesTreeView.cs:396)
UnityEditor.IMGUI.Controls.TreeView+TreeViewControlGUI.OnContentGUI (UnityEngine.Rect rect, System.Int32 row, UnityEditor.IMGUI.Controls.TreeViewItem item, System.String label, System.Boolean selected, System.Boolean focused, System.Boolean useBoldFont, System.Boolean isPinging) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewControl/TreeViewControlGUI.cs:136)
UnityEditor.IMGUI.Controls.TreeViewGUI.DoItemGUI (UnityEngine.Rect rect, System.Int32 row, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Boolean selected, System.Boolean focused, System.Boolean useBoldFont) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:266)
UnityEditor.IMGUI.Controls.TreeViewGUI.OnRowGUI (UnityEngine.Rect rowRect, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Boolean selected, System.Boolean focused) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:198)
UnityEditor.IMGUI.Controls.TreeViewController.DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Single rowWidth, System.Boolean hasFocus) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:494)
UnityEditor.IMGUI.Controls.TreeViewController.IterateVisibleItems (System.Int32 firstRow, System.Int32 numVisibleRows, System.Single rowWidth, System.Boolean hasFocus) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:679)
UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (UnityEngine.Rect rect, System.Int32 keyboardControlID) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:605)
UnityEditor.IMGUI.Controls.TreeView.OnGUI (UnityEngine.Rect rect) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewControl/TreeViewControl.cs:414)
UnityEditor.PrefabOverridesWindow.OnGUI (UnityEngine.Rect rect) (at C:/buildslave/unity/build/Editor/Mono/Prefabs/PrefabOverrides/PrefabOverridesWindow.cs:214)
UnityEditor.PopupWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/PopupWindow.cs:90)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:129)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:244)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- NavMesh Surface is baked too high above the ground, making the NavMesh Agents hover above the ground when the HeightMesh is not built
- [Android] Crash on ProcessDynamicBatchGeometryJob with OpenGL or on DrawSharedGeometryJobs with Vulkan
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
This is a duplicate of issue #1099228