Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: breakmachine on January 23, 2014, 10:51:58 AM

Title: nullreference when resuming app
Post by: breakmachine on January 23, 2014, 10:51:58 AM
Hi!

We got an error report saying that if you suspend our app on android and then resume it quickly it sometimes crashes on lower-end devices. From the error log it seems the crash is due to a NullReferenceException on UIDrawCall.Destroy.

01-22 15:03:16.654: I/Unity(5671): NullReferenceException
01-22 15:03:16.654: I/Unity(5671):   at UnityEngine.Component.get_gameObject () [0x00000] in <filename unknown>:0
01-22 15:03:16.654: I/Unity(5671):   at UIDrawCall.Destroy (.UIDrawCall dc) [0x00000] in <filename unknown>:0
01-22 15:03:16.654: I/Unity(5671):   at UIPanel.OnDisable () [0x00000] in <filename unknown>:0
Title: Re: nullreference when resuming app
Post by: ArenMook on January 24, 2014, 08:05:35 AM
There was a post on this just yesterday, and I posted a fix inside.