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".
Comments (1)
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.