Fix NPE in HackyPager

This commit is contained in:
Cody Henthorne
2022-01-10 09:58:45 -05:00
parent 552fdcce98
commit 917744f091

View File

@@ -47,7 +47,7 @@ public class HackyViewPager extends ViewPager {
public boolean onTouchEvent(MotionEvent ev) {
try {
return super.onTouchEvent(ev);
} catch (IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException | NullPointerException e) {
Log.w(TAG, e);
return true;
}