We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65b4282 + c25a39d commit ea59486Copy full SHA for ea59486
android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/scroll/DefaultScrollHandle.java
@@ -110,7 +110,9 @@ public void setScroll(float position) {
110
} else {
111
handler.removeCallbacks(hidePageScrollerRunnable);
112
}
113
- setPosition((pdfView.isSwipeVertical() ? pdfView.getHeight() : pdfView.getWidth()) * position);
+ if (pdfView != null) {
114
+ setPosition((pdfView.isSwipeVertical() ? pdfView.getHeight() : pdfView.getWidth()) * position);
115
+ }
116
117
118
private void setPosition(float pos) {
0 commit comments