Skip to content

Commit

Permalink
null check before destroying drawing cache (fix for Xperia)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewall committed Jun 8, 2016
1 parent da7ef41 commit e33e719
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ public void onPause(){
public void onDestroy() {
LOG.info("onDestroy()");
super.onDestroy();
mTempomatView.destroyDrawingCache();
mTempomatView = null;

// null check before destroying.
if(mTempomatView != null) {
mTempomatView.destroyDrawingCache();
mTempomatView = null;
}
}

@Override
Expand Down

0 comments on commit e33e719

Please sign in to comment.