Search Issue Tracker
Fixed in 4.6.X
Votes
10
Found in
4.6.0b15
Issue ID
625450
Regression
No
When a null reference occurs on the Button On Click(), the thrown exception does not point to the line that caused the error
To reproduce this bug:
1. Open the attached project
2. Open 'button error' scene
3. Run the scene
4. Click on the button
5. 'Callback' script deliberately causes a null reference exception
6. <Type IPointerClickHandler expected Button received. i:0. Object reference not set to an instance of an object
UnityEngine.EventSystems.EventSystem:Update()> is thrown instead of the usual null reference message
7. Clicking on it does not point to the line that caused the error
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
bererton
Sep 12, 2014 20:41
upgrading to 4.6b18 fixes this. I just had the same problem.
gavi
Sep 09, 2014 09:53
same here
daybson.paisante
Sep 02, 2014 13:07
The same here
NoName115
Sep 01, 2014 16:19
Yes i have the same problem, a have script (Save_Profile) attatch to the Button (Ready) and in function OnClick(), i add Ready button(GameObject) and to the function i add Save_Profile.SavePlayerProfile (). When i click on the button, nothing happend and show me this ERROR.