diff options
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/org/traccar/manager/StartFragment.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/src/main/java/org/traccar/manager/StartFragment.java b/app/src/main/java/org/traccar/manager/StartFragment.java index f56d7e8..c88c260 100644 --- a/app/src/main/java/org/traccar/manager/StartFragment.java +++ b/app/src/main/java/org/traccar/manager/StartFragment.java @@ -87,10 +87,12 @@ public class StartFragment extends Fragment implements View.OnClickListener { @Override protected void onPostExecute(Boolean result) { - if (result) { - onSuccess(); - } else { - onError(); + if (getActivity() != null) { + if (result) { + onSuccess(); + } else { + onError(); + } } } |