Craig wrote: > Here is what you get trying to pass a null up to TextView's > onRestoreInstanceState: > > 11-06 02:57:40.286: ERROR/AndroidRuntime(5218): Caused by: > java.lang.NullPointerException > 11-06 02:57:40.286: ERROR/AndroidRuntime(5218): at > android.widget.TextView.onRestoreInstanceState(TextView.java:2040) > 11-06 02:57:40.286: ERROR/AndroidRuntime(5218): at [my package]. > [TextView subclass].onRestoreInstanceState(ScoreView.java:45)
Hmmm...that's disappointing. If they returned null from onSaveInstanceState(), it would be nice if they accepted null in onRestoreInstanceState(). Can you just skip chaining upward to the superclass? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---