fix NPE
This commit is contained in:
parent
60d5567c91
commit
27bfab5e15
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,7 @@ import android.support.annotation.NonNull;
|
|||
|
||||
import com.squareup.otto.Subscribe;
|
||||
|
||||
import info.nightscout.androidaps.Config;
|
||||
import info.nightscout.androidaps.MainApp;
|
||||
import info.nightscout.androidaps.R;
|
||||
import info.nightscout.androidaps.data.IobTotal;
|
||||
|
@ -113,6 +114,10 @@ public class StatuslinePlugin extends PluginBase {
|
|||
@NonNull
|
||||
private String buildStatusString(Profile profile) {
|
||||
String status = "";
|
||||
|
||||
if (ConfigBuilderPlugin.getPlugin().getActivePump() == null)
|
||||
return "";
|
||||
|
||||
LoopPlugin loopPlugin = LoopPlugin.getPlugin();
|
||||
|
||||
if (!loopPlugin.isEnabled(PluginType.LOOP)) {
|
||||
|
|
Loading…
Reference in a new issue