Author Topic: nullreference when resuming app  (Read 3443 times)

breakmachine

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 71
    • View Profile
nullreference when resuming app
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: nullreference when resuming app
« Reply #1 on: January 24, 2014, 08:05:35 AM »
There was a post on this just yesterday, and I posted a fix inside.