Skip to content
Snippets Groups Projects
Commit efa21e38 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Catch another BottomSheetBehavior NPE

parent 75eb8ea8
No related branches found
No related tags found
No related merge requests found
......@@ -25,4 +25,13 @@ public class BottomSheetBehavior<V extends View> extends android.support.design.
return false;
}
}
@Override
public void onStopNestedScroll(CoordinatorLayout coordinatorLayout, V child, View target) {
try {
super.onStopNestedScroll(coordinatorLayout, child, target);
} catch (NullPointerException ignored) {
//Same crash, weakref not already set.
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment