Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.3.4p3
Issue ID
789859
Regression
No
Assert.IsNotNull and Assert.IsNull do not trigger
Reproduction steps:
1. Open attached project (Assert)
2. Open scene
3. Click on the Main Camera
- Notice that there is a script attached with empty fields for Game Objects (Check Not Null and Check Null)
4. Click play
- In console you get error message that Check Null is Not Null, while it is null because no Game Object is added to Check Null
- If you add a Cube to both Check Not Null and Check Null you will still get the same message, and the same happens if you add a Cube to only one of them
Check Not Null (Assert.IsNotNull) should trigger when the value is not null
Check Null (Assert.IsNull) should trigger when the value is null
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
Add comment