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.
1 parent 69f7398 commit 29fd17bCopy full SHA for 29fd17b
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