Skip to content

Commit

Permalink
Merge pull request nickbutcher#245 from pranavpandey/master
Browse files Browse the repository at this point in the history
Fix ink page indicator null pointer exception
  • Loading branch information
nickbutcher authored Jan 19, 2018
2 parents 48bbfc4 + 8e83302 commit f37bad2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ private void drawSelected(Canvas canvas) {
}

private void setSelectedPage(int now) {
if (now == currentPage) return;
// Check for null array
if (now == currentPage || dotCenterX == null) return;

pageChanging = true;
previousPage = currentPage;
Expand Down

0 comments on commit f37bad2

Please sign in to comment.