diegocarloslima / FloatingGroupExpandableListView

An open source Android library that provides a floating group view at the top of the ExpandableListView
Apache License 2.0
372 stars 136 forks source link

NPE at xml layout #15

Closed mpkr closed 10 years ago

mpkr commented 10 years ago

Hi Diego, I got NPE whenever I open xml file that contains <com.diegocarloslima.fgelv.lib.FloatingGroupExpandableListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" />

Take a look at the picture capture

and here is the full log:

java.lang.NullPointerException Exception details are logged in Window > Show View > Error Log

java.lang.NullPointerException at android.widget.ExpandableListView.getFlatListPosition(ExpandableListView.java:911) at com.diegocarloslima.fgelv.lib.FloatingGroupExpandableListView.drawDefaultSelector(FloatingGroupExpandableListView.java:458) at com.diegocarloslima.fgelv.lib.FloatingGroupExpandableListView.dispatchDraw(FloatingGroupExpandableListView.java:203) at android.view.View.draw(View.java:14468) at android.widget.AbsListView.draw(AbsListView.java:3817) at android.view.View.draw(View.java:14350) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14348) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14348) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14468) at android.view.View.draw(View.java:14350) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14348) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14468) at android.view.View.draw(View.java:14350) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14468)

It's not cause any error in the app but it prevent editing the xml file in graphical.

diegocarloslima commented 10 years ago

Hey mpkr! Thanks for reporting again ;) I'll take a look on that and will fix asap.

diegocarloslima commented 10 years ago

Done! :+1:

mpkr commented 10 years ago

thanks, work like a charm