Search Issue Tracker
Fixed in 1.2.0-preview
Votes
0
Found in [Package]
1.0.4-preview.9
Issue ID
1227003
Regression
No
Errors appear in the console when game object is selected in hierarchy
Errors appear in the console when game object is selected in hierarchy
Steps to reproduce
- Open the attached project in Unity 2020.1.0b1
- Open the MainHUB scene
- In the hierarchy, select any game object
- Press play
Notice issue >> Errors are produced in the console. This only happens if something is selected in the hierarchy
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at <b12b1135410b470d90ca262c9fe40af0>:0)
UnityEditor.GameObjectInspector.OnDisable () (at <b12b1135410b470d90ca262c9fe40af0>:0)
UnityEditor.AssetDatabase:ImportAsset(String)
Unity.Notifications.UnityNotificationEditorManager:Initialize() (at Library/PackageCache/com.unity.mobile.notifications@1.0.4-preview.9/Editor/UnityNotificationEditorManager.cs:187)
Unity.Notifications.UnityNotificationEditorManager:OnProjectLoaded() (at Library/PackageCache/com.unity.mobile.notifications@1.0.4-preview.9/Editor/UnityNotificationEditorManager.cs:149)
Tested
Windows 10 - Unity 2020.1.0b1
Note: I could not reproduce the issue on a new project.
Comments (10)
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
PixelFireXY
Sep 21, 2021 15:09
I confirm it is happening in 2020.3.16f1 as well. Very annoying bug!
kris007_iron
Apr 15, 2021 04:48
But what if i dont have any selected object in hierarchy
TRWolf
Mar 19, 2021 17:39
Have the same issues 2020.3. Haven't uninstalled mobile notifications in part because I desire to use such functionality. Quite frustrating as the issue is seemingly been around for a LONG time.
jynerso
Mar 13, 2021 10:00
2020.3.0 still
SpectreCular
Nov 28, 2020 06:44
I can confirm that this issue still exists, and is solved via removing the Mobile Notifications package from the project, which is NOT much of a solution if you actually WANT to use that package
savantedroid
Nov 07, 2020 12:00
If you are not using mobile notifications, simply remove it from the Package Manager. Than the problem will be gone.
savantedroid
Nov 07, 2020 11:59
Unity 2020.1.12f1
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:214)
UnityEditor.GameObjectInspector.ReloadPreviewInstances () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:601)
UnityEditor.GameObjectInspector.OnForceReloadInspector () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:209)
UnityEditor.AssetDatabase:ImportAsset(String)
Unity.Notifications.UnityNotificationEditorManager:Initialize() (at Library/PackageCache/com.unity.mobile.notifications@1.0.3/Editor/UnityNotificationEditorManager.cs:380)
Unity.Notifications.UnityNotificationEditorManager:OnProjectLoaded() (at Library/PackageCache/com.unity.mobile.notifications@1.0.3/Editor/UnityNotificationEditorManager.cs:342)
quincyHuang
Nov 02, 2020 03:09
I confirm it is happening in 2019.4.x as well. Very annoying bug!
trikingo
Oct 29, 2020 06:20
I confirm it is happening in 2020.1.11f1 as well. Very annoying bug!
ELERMOND
Oct 18, 2020 20:22
This bug are also still available on ver. 2020.1.9f1
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at <cdc1918cb795429dbbd46f2de52cb053>:0)
UnityEditor.GameObjectInspector.OnDisable () (at <cdc1918cb795429dbbd46f2de52cb053>:0)