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