That article says that "throw null" will result in a good, non-null instance of NullPointerException being thrown.
I was curious enough to try it on 2.3 and 4.1, and yes, it works as described. Back to slow network connections: If you've set your socket timeouts correctly (i.e. to some reasonable, finite, values), you'll just be getting SocketTimeoutException thrown out of the networking code. Handle these, bubble them up to the UI, perhaps have a retry plan -- and you're all set. -- K 2012/8/24 bob <[email protected]> > It does happen: > > http://www.adarshr.com/papers/npe > > -- 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

