Search Issue Tracker

Fixed in 4.6.X



Found in


Issue ID




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

Comments (4)

  1. B78559d65e19c3950dc7700d26e15159?d=mm


    Sep 12, 2014 20:41

    upgrading to 4.6b18 fixes this. I just had the same problem.

  2. Ee01c5393a68202228ce01c8e88a2fea?d=mm


    Sep 09, 2014 09:53

    same here

  3. C97b40672835e03b7d25b7b8eec6e5e6?d=mm


    Sep 02, 2014 13:07

    The same here

  4. 9a27b5032d3ba7c7de0d54151f70fcd5?d=mm


    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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.