HI there, I am calling a script method from a button using onclick notify - the method has a null parameter and these parameters/methods serve to instruct my networking code to pull information from my server. However when I click the button I am getting a null reference exception with reference to the line I am trying to call, citing further errors in event delegate.
System.NullReferenceException: Object reference not set to an instance of an object
at GetDataTest.GetFromServer () [0x00024] in D:\dropbox\Dropbox\MOBA project\New MOBA\Assets\_Menu\GetDataTest.cs:17
at EventDelegate.Execute () [0x00039] in D:\dropbox\Dropbox\MOBA project\New MOBA\Assets\NGUI\Scripts\Internal\EventDelegate.cs:476
at EventDelegate.Execute (System.Collections.Generic.List`1 list) [0x00020] in D:\dropbox\Dropbox\MOBA project\New MOBA\Assets\NGUI\Scripts\Internal\EventDelegate.cs:644
at UIButton.OnClick () [0x00041] in D:\dropbox\Dropbox\MOBA project\New MOBA\Assets\NGUI\Scripts\Interaction\UIButton.cs:248
Can someone advise?
I'm a little annoyed. This is not the first time that I have found NGUI to throw errors whilst attempting to use basic functionality.