Hi All--

I have a ListActivity activity (with, of course, a ListView) that
creates an AlertDialog when one of its elements is pressed to enabling
editing of that item.    The AlertDialog has an EditView in it and
displays correctly, but when i click on the text box, I get the
following crash on both the Nexus One and Google API Level 7 AVD:

        DalvikVM[localhost:8615]
                Thread [<3> main] (Suspended (exception NullPointerException))
                        ListView.layoutChildren() line: 1606
                        ListView(AbsListView).onLayout(boolean, int, int, int, 
int) line:
1113
                        ListView(View).layout(int, int, int, int) line: 6830
                        FrameLayout.onLayout(boolean, int, int, int, int) line: 
333
                        FrameLayout(View).layout(int, int, int, int) line: 6830
                        PhoneWindow$DecorView(FrameLayout).onLayout(boolean, 
int, int, int,
int) line: 333
                        PhoneWindow$DecorView(View).layout(int, int, int, int) 
line: 6830
                        FrameLayout.onLayout(boolean, int, int, int, int) line: 
333
                        FrameLayout(View).layout(int, int, int, int) line: 6830
                        LinearLayout.setChildFrame(View, int, int, int, int) 
line: 1119
                        LinearLayout.layoutVertical() line: 998
                        LinearLayout.onLayout(boolean, int, int, int, int) 
line: 918
                        LinearLayout(View).layout(int, int, int, int) line: 6830
                        TabHost(FrameLayout).onLayout(boolean, int, int, int, 
int) line:
333
                        TabHost(View).layout(int, int, int, int) line: 6830
                        FrameLayout.onLayout(boolean, int, int, int, int) line: 
333
                        FrameLayout(View).layout(int, int, int, int) line: 6830
                        PhoneWindow$DecorView(FrameLayout).onLayout(boolean, 
int, int, int,
int) line: 333
                        PhoneWindow$DecorView(View).layout(int, int, int, int) 
line: 6830
                        ViewRoot.performTraversals() line: 996
                        ViewRoot.handleMessage(Message) line: 1633
                        ViewRoot(Handler).dispatchMessage(Message) line: 99
                        Looper.loop() line: 123
                        ActivityThread.main(String[]) line: 4363
                        Method.invokeNative(Object, Object[], Class, Class[], 
Class, int,
boolean) line: not available [native method]
                        Method.invoke(Object, Object...) line: 521
                        ZygoteInit$MethodAndArgsCaller.run() line: 860
                        ZygoteInit.main(String[]) line: 618
                        NativeStart.main(String[]) line: not available [native 
method]
                Thread [<13> Binder Thread #2] (Running)
                Thread [<11> Binder Thread #1] (Running)

For the life of me, I can't figure out what I'm doing wrong.    I
looked at the public sources and line 1606 is not on a line with a
dereferenced object.    Anyone seen this before?

Tim

-- 
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

Reply via email to