Skip to content

Commit

Permalink
Avoid NullPointerException crash in Plotter
Browse files Browse the repository at this point in the history
  • Loading branch information
Notice-Jeroen-Meijer committed Mar 20, 2019
1 parent 78a7d62 commit 7935a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/lu/fisch/canze/changelog.txt
@@ -1,3 +1,4 @@
2019-03-19 [Jeroen] Avoid NullPointerException crash in Plotter
2019-03-19 [Jeroen] Avoid IndexOutOfBounds crash in Timeplot
2019-03-16 [Jeroen] Added All Data
2019-03-16 [Jeroen] Fixed Range Activity
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/lu/fisch/canze/widgets/Plotter.java
Expand Up @@ -267,6 +267,8 @@ public void draw(Graphics g) {
lastY = my;
} catch (IndexOutOfBoundsException e) {
/* simply ignore */
} catch (NullPointerException e) {
/* simply ignore */
}
}
}
Expand Down

0 comments on commit 7935a7e

Please sign in to comment.