diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java index 9115d2e4..ea12b10b 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java @@ -97,8 +97,10 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI } public void onDrawerClosed() { - mTimer.cancel(); - mTimer = null; + if (mTimer != null) { + mTimer.cancel(); + mTimer = null; + } } @Override