From 3a17ed19c442f5f9b3227c8d8b5fc0ea7fcb7c5e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 29 Jan 2017 18:48:42 +0100 Subject: [PATCH] prevent null pointer exception --- .../persistentnotification/PersistentNotificationPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/persistentnotification/PersistentNotificationPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/persistentnotification/PersistentNotificationPlugin.java index f99f508e06..54b4070bed 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/persistentnotification/PersistentNotificationPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/persistentnotification/PersistentNotificationPlugin.java @@ -104,6 +104,7 @@ public class PersistentNotificationPlugin implements PluginBase{ String line1 = ctx.getString(R.string.noprofile); + if (MainApp.getConfigBuilder().getActiveProfile() == null) return; NSProfile profile = MainApp.getConfigBuilder().getActiveProfile().getProfile();