Search Issue Tracker
Fixed
Fixed in 2022.3.46f1, 6000.0.18f1, 7000.0.0a1
Votes
1
Found in
2022.3.39f1
6000.0.12f1
Issue ID
UUM-76654
Regression
Yes
NullReferenceException is thrown and unnecessary Re-Binding of ListView Elements when modifying List Elements in custom Inspector with Generic SerializedProperty
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Click on the "CarSettingsManager" GameObject in the Hierarchy view
4. In the Inspector view, modify any of the fields in the "Car Settings List"
5. Observe the Console window
Expected result: No errors are thrown, and list elements remain bound without unnecessary un-binding and re-binding upon modification
Actual result: “NullReferenceException: Object reference not set to an instance of an object” error is thrown and list elements are unnecessarily un-bound and re-bound with each modification
Reproducible with: 2022.3.28f1, 2022.3.39f1
Not reproducible with: 2022.3.27f1, 6000.0.12f1
Couldn't test with: 2021.3.40f1 (No GUI Implemented)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
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
- Project Auditor suggests to update package to a lower version than installed when the recommended package version is not the latest version
- Low performance when multiple meshes using BlendShape are rendered on screen
- TMP Dropdown visually corrupts or disappears when its own GameObject is assigned to "Caption Image" or "Placeholder" elements
- Usymtool tries to upload GameAssembly.pdb when it doesn't exist after building with Mono backend
- “NullReferenceException” error thrown in the Console when running HDRP Wizard “Fix All” in URP project after installing HDRP Package
chadfranklin47
Jul 24, 2024 10:01
I want to add that the primary issue here is not the NullReferenceException itself, but the unbinding and re-binding of ListView elements unnecessarily on every value change. It is here that the NullReferenceException occurs, but this should not be happening in the first place.