Only started having this problem after the b7 update.
This code sometimes crashes with a NullReferenceException at
if (taskQue.Count != 0).
No idea why. Any ideas? It only happens occasionally.
public class TaskQue: MonoBehaviour
{
#region Fields
private ArrayList taskQue;
#endregion
#region Functions
void Start()
{
taskQue = new ArrayList();
}
public void Awake()
{
DontDestroyOnLoad(transform.gameObject);
}
void Update()
{
if (taskQue.Count != 0)
{
}
}
}
This only happens at startup. It doesnt just happen half way through runtime.
Its as if the start method is never called sometimes.
Ideally. Personally, I don’t report the little bugs that don’t matter, because there’s too much broken in Unity that actually does matter, and I’d rather have efforts concentrated there.
Keep a running list of these types of bugs, and when Unity is perfect otherwise, then report them.