So, my app is getting all kinds of NPE and I can't even trap them because 
it happens internally @ line 297 in the following source written by Diane 
Hackborn

https://github.com/android/platform_frameworks_support/blob/master/v4/java/android/support/v4/content/LocalBroadcastManager.java

HOWEVER, it never occurs on any of MY 10 devices ranging from GB to Kitkat. 
 Google play developer console has been listing a bunch of crashes from a 
number of my users.  SUPER ANNOYING cuz they're giving me bad reviews.....

I am going to use the above code but put in some try/catch.  Also, I don't 
like the line where it says:

while (true) {
  .....    
}

 I'm going to put some sort of threshold like "while (true && count++ < 
10000)"  because it could be an infinite loop if all hell breaks loose. 
 unlikely, but still.  And there's no way I'll ever have 10,000 pending 
broadcasts lmao.  i just dont want my app to anr

Could somebody shed some light on this?  thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to