Support => NGUI 3 Support => Topic started by: bloomk on September 25, 2014, 03:17:21 PM
Title: NonHelpful Error
Post by: bloomk on September 25, 2014, 03:17:21 PM
I am getting this and the stack trace does not offer any help as to what exactly the issue is or more importantly, WHERE...
Object reference not set to an instance of an object UnityEngine.Debug:LogError(Object) EventDelegate:Execute(List`1) (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:623) UIButton:OnClick() (at Assets/NGUI/Scripts/Interaction/UIButton.cs:248) UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions) UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:1044) UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1771) UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1366) UICamera:ProcessTouches() (at Assets/NGUI/Scripts/UI/UICamera.cs:1438) UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:1185)
Title: Re: NonHelpful Error
Post by: ArenMook on September 25, 2014, 07:50:42 PM
You need to update your NGUI...
Title: Re: NonHelpful Error
Post by: Zamaroht on April 01, 2016, 01:09:16 PM
Hello, I know this is an old thread, but I'm having the same issue with the last version of NGUI. The error message is the same, but the EventDelegate's line of error is 641.
What could be causing it? Thanks
Title: Re: NonHelpful Error
Post by: ArenMook on April 01, 2016, 05:38:27 PM
That entire section is #ifdef'd to not run in Unity editor:
#if !UNITY_EDITOR && !UNITY_FLASH
So I am going to assume you are getting it in your runtime app. If you want to actual line number, remove the safety block (try/catch).
Title: Re: NonHelpful Error
Post by: Zamaroht on April 01, 2016, 09:36:09 PM
That entire section is #ifdef'd to not run in Unity editor:
#if !UNITY_EDITOR && !UNITY_FLASH
So I am going to assume you are getting it in your runtime app. If you want to actual line number, remove the safety block (try/catch).
That's right, the game is working correctly in the editor but giving this error when trying in Android. I'll give that a try and report back, thank you!
Title: Re: NonHelpful Error
Post by: Zamaroht on April 04, 2016, 09:10:00 AM
Yep, it was a problem in our code, taking the del.Execute() out of the try block showed where it was. Thanks!