i'm getting a weird null reference exception when i debug my app on device (Asus Transformer Prime).
This happens in app initialization, both in Start() and Awake().
The Transform is being assigned in the Inspector, and when launching the app in the Editor it works fine, i get a reference to the Transform as expected, while on the device i get a null reference.
public Transform weirdObject;
void Awake()
{
if(this.weirdObject == null) Debug.Log("meh. null.");
else Debug.Log("yea it's not null");
}
↧