Skip to content

Commit

Permalink
"fix" reported crash that i can't repeat, RunActivity.onGpsTrackerBound
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasoreland committed Jun 13, 2015
1 parent e72a0a6 commit 051e887
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/src/org/runnerup/view/RunActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ public void onDestroy() {
}

void onGpsTrackerBound() {
if (mTracker == null) {
// should not happen
return;
}

if (mTracker.getWorkout() == null) {
// should not happen
return;
}

workout = mTracker.getWorkout();

{
Expand Down

0 comments on commit 051e887

Please sign in to comment.