Skip to content

Commit

Permalink
Fix crash issue
Browse files Browse the repository at this point in the history
Changes are from PhilJay#5376
  • Loading branch information
hannesa2 committed Feb 2, 2023
1 parent 52d16f8 commit 30316e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ protected void drawMarkers(Canvas canvas) {
Entry e = mData.getEntryForHighlight(highlight);

// make sure entry not null before using it
if (e == null) {
if (e == null || set == null) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected void drawMarkers(Canvas canvas) {
IDataSet set = mData.getDataSetByHighlight(highlight);

Entry e = mData.getEntryForHighlight(highlight);
if (e == null) {
if (e == null || set == null) {
continue;
}

Expand Down

0 comments on commit 30316e8

Please sign in to comment.