Search Issue Tracker
Fixed in 5.5.0
Votes
1
Found in
5.3.4f1
Issue ID
786180
Regression
No
[NetworkManagerHUD]Selecting prefab with "NetworkManagerHUD" component outputs "NullReferenceException" error message
Steps to reproduce:
1. Open attached project and scene named "scene1".
2. Navigate to the "Assets" folder through "Project" window and select game object named "Test".
3. Press play button in the Editor.
3. Notice that console window does not output any error message.
4. Still in the play mode, in "Project" window select prefab named "New Prefab".
5. Notice that now console window continually outputs error message "NullReferenceException: Object reference not set to an instance of an object", because prefab has a "NetworkManagerHUD" component.
6. Again in "Project" window select prefab "Test" and no error messages are output until again selecting prefab "New Prefab".
GIF attached.
Expected result:
There should be no exceptions thrown only by selecting game object with "NetworkManagerHUD" component in the Editor.
Reproduced with:
5.4.0b13, 5.3.4p2, 5.3.4f1, 5.2.4f1.
With 5.1.0f3 error messages appear not constantly (only four messages per click on prefab "New Prefab").
Note:
Sometimes (not always) exiting Unity while getting these error messages causes crash: "Unity Editor has stopped working".
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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
quinng
May 25, 2016 17:48
I have also encountered this issue. As I understand it, the custom property drawer for NetworkManagerHUD is trying display information at runtime that the NMHUD component on the prefab doesn't actually have access to.