[android-developers] Re: unreasonable NullPointerException in onDestroy()
I have run it too before I released my app, but still got an error
report through Developers console.
On Oct 8, 10:03 am, Goodwin <purerain2...@163.com> wrote:
> I have run these code.
> no error.
>
> On Oct 8, 4:34 pm, DraganA <dand...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'm puzzled as to why I'm getting Null pointer exception in the
> > construct below, knowing the Activity life cycle, it shouldn't happen.
> > Could the clue be in TabActivity??
>
> > public class Main extends TabActivity {
>
> > private List<String> list;
>
> > public void onCreate(Bundle savedInstanceState) {
> > list = new ArrayList<String>();
> > }
>
> > protected void onDestroy() {
> > list.clear();
> > }
>
> > }
--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home