test activity for null

This commit is contained in:
Milos Kozak 2016-10-23 23:34:14 +02:00
parent 1597ee77b5
commit 8614469a35

View file

@ -422,6 +422,9 @@ public class OverviewFragment extends Fragment {
if (bgGraph == null) if (bgGraph == null)
return; return;
if (getActivity() == null)
return;
// open loop mode // open loop mode
final LoopPlugin.LastRun finalLastRun = LoopPlugin.lastRun; final LoopPlugin.LastRun finalLastRun = LoopPlugin.lastRun;
if (Config.APS) { if (Config.APS) {