Author Topic: NonHelpful Error  (Read 4514 times)

bloomk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
NonHelpful Error
« 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)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NonHelpful Error
« Reply #1 on: September 25, 2014, 07:50:42 PM »
You need to update your NGUI...

Zamaroht

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NonHelpful Error
« Reply #2 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NonHelpful Error
« Reply #3 on: April 01, 2016, 05:38:27 PM »
That entire section is #ifdef'd to not run in Unity editor:
  1. #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).

Zamaroht

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NonHelpful Error
« Reply #4 on: April 01, 2016, 09:36:09 PM »
That entire section is #ifdef'd to not run in Unity editor:
  1. #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!

Zamaroht

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NonHelpful Error
« Reply #5 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!