Skip to content

Commit

Permalink
Merge branch 'andrewgrow-pdfView-is-null'
Browse files Browse the repository at this point in the history
  • Loading branch information
barteksc committed Aug 17, 2019
2 parents 65b4282 + c25a39d commit ea59486
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ public void setScroll(float position) {
} else {
handler.removeCallbacks(hidePageScrollerRunnable);
}
setPosition((pdfView.isSwipeVertical() ? pdfView.getHeight() : pdfView.getWidth()) * position);
if (pdfView != null) {
setPosition((pdfView.isSwipeVertical() ? pdfView.getHeight() : pdfView.getWidth()) * position);
}
}

private void setPosition(float pos) {
Expand Down

0 comments on commit ea59486

Please sign in to comment.