Search Issue Tracker
Fixed in 2021.3.29f1
Fixed in 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.2.0a22
Votes
0
Found in
2020.3.47f1
2021.3.24f1
2022.2.18f1
2023.1.0b15
2023.2.0a13
Issue ID
UUM-34447
Regression
Yes
"Missing" ScriptableObjects do not throw NullReferenceExceptions when accessing their properties
How to reproduce:
1. Open the attached Project "testProject" and load Scene "SampleScene"
2. In the Project Window delete the Asset "testObj.asset"
3. Enter Play Mode
4. Observe the Console Window
Expected result: NullReferenceExpections can be seen in the Console
Actual result: No NullReferenceExceptions are thrown in the Console
Reproducible with: 2020.3.47f1, 2021.3.24f1, 2022.1.0a7, 2022.2.18f1, 2023.1.0b15, 2023.2.0a13
Not reproducible with: 2022.1.0a6
Notes:
- Assigning a null value to a ScriptableObject correctly throws NullReferenceExceptions
- When using a GameObject instead of a ScriptableObject in this scenario, the GameObject correctly throws the Exceptions
- "Missing" GameObjects, as well as ScriptableObjects in 2022.1.0a6, get changed to "None" upon entering Play Mode
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
- [Linux] TMP Font Asset pop-up Window opens on the secondary monitor when the Editor is placed in primary monitor
- Transition delay is ignored when opacity is listed before scale in transition-property of the Styles.uss file
- “NullReferenceException” error thrown in the Console when pressing kebab button in Pipeline Specific Settings for Default Profile in Project Settings window
- [Silicon] Crash on os_unfair_recursive_lock_lock_with_options when opening a project while the Razer Synapse app is open
- Build fails with a warning when running Unity Editor’s csc.dll manually using dotnet command
Resolution Note (fix version 2023.1):
Fixed in: 2023.1.4f1
Resolution Note (fix version 2022.3):
Fixed in: 2022.3.5f1