OpenTreeMap / otm-android

An OpenTreeMap client for Android. The OpenTreeMap code can be downloaded at https://github.com/OpenTreeMap/otm-core.
Other
23 stars 22 forks source link

Unhandled exception in UDFChoiceFragment #274

Open maurizi opened 8 years ago

maurizi commented 8 years ago

Exception reported via Rollbar:

java.lang.NullPointerException
1 at org.azavea.otm.ui.UDFChoiceFragment.setSelectedStyle (UDFChoiceFragment.java:85)
2 at org.azavea.otm.ui.UDFChoiceFragment.lambda$onCreateView$0 (UDFChoiceFragment.java:52)
3 at org.azavea.otm.ui.UDFChoiceFragment.access$lambda$0 (Unknown source)
4 at org.azavea.otm.ui.UDFChoiceFragment$$Lambda$2.onItemClick (Unknown source)

This is definitely from the stewardship choice UI, though it is unclear if it is the "key" field or the "subfield".

StackOverflow indicates that we are likely traversing the children of the ListView incorrectly: http://stackoverflow.com/questions/6766625/listview-getchildat-returning-null-for-visible-children