New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in RelativeLayout.onMeasure() #69
Comments
No idea why this got cut off:
|
Nice catch, very weird though. This will hopefully have fixed itself in the Emil Sjölander
|
could you please test this with the current version? probably not an issue anymore :) |
I will try in a few days (I am on vacation now), but if there really is an issue with setting an adapter without data, please address that as I do that quite a bit in my app. |
of course, i also do this often |
setting the adapter with no info is now working. Get back to me when you have had a chance to try this issue with the newest build :) |
This is fixed. |
thx! |
I got the same issue again. Using a RelativeLayout as a header seems to be problematic! Don't know why. My RelativeLayout is very simple - contains only 2 TextViews one left aligned, one right aligned. |
I had the following layout for my header:
When I used this layout as a header, I got a crash:
java.lang.NullPointerException
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:523)
at android.view.View.measure(View.java:15513)
at com.emilsjolander.components.stickylistheaders.StickyListHeadersListView.measureHeader(StickyListHeadersListView.java:253)
at com.emilsjolander.components.stickylistheaders.StickyListHeadersListView.scrollChanged(StickyListHeadersListView.java:311)
at com.emilsjolander.components.stickylistheaders.StickyListHeadersListView.onScroll(StickyListHeadersListView.java:280)
at android.widget.AbsListView.invokeOnItemScrollListener(AbsListView.java:1340)
at android.widget.ListView.layoutChildren(ListView.java:1753)
at android.widget.AbsListView.onLayout(AbsListView.java:1994)
at com.emilsjolander.components.stickylistheaders.StickyListHeadersListView.onLayout(StickyListHeadersListView.java:112)
I fixed it by changing the RelativeLayout to a FrameLayout, which it should have been anyhow, but the point remains that it should not crash.
The text was updated successfully, but these errors were encountered: