Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
fix NullPointerException #1
Browse files Browse the repository at this point in the history
  • Loading branch information
haoling committed May 15, 2017
1 parent 98af813 commit 2f159a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ public void startExecuting() {

@Override
public void resetTask() {
theMaid.getActiveModeClass().resetBlock(theMaid.maidMode);
if (theMaid.getActiveModeClass() != null) {
theMaid.getActiveModeClass().resetBlock(theMaid.maidMode);
}
}

@Override
Expand Down

0 comments on commit 2f159a6

Please sign in to comment.