Skip to content

Commit

Permalink
修复倒计时对象某些时候被回收引起的空指针异常
Browse files Browse the repository at this point in the history
  • Loading branch information
iwgang committed Nov 4, 2015
1 parent 9c46a14 commit ccb4abd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public void handleMessage(Message msg) {

CustomCountDownTimer curCustomCountDownTimer = wrf.get();

if (null == curCustomCountDownTimer) return ;

switch (msg.what) {
case HANDLER_WHAT_TICK:
if (null != curCustomCountDownTimer.mCustomCountDownTimerListener) {
Expand Down

0 comments on commit ccb4abd

Please sign in to comment.