From bb21f2ae7bbf3a2a41deb020442415b300c561ff Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 2 Feb 2018 15:31:25 +0100 Subject: [PATCH] fix NPE --- .../plugins/ConfigBuilder/ConfigBuilderPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java index 881529edc6..1f0563bb0a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java @@ -794,10 +794,10 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr return profile; } } - // Unable to determine profile, failover to default - if (activeProfile.getProfile() == null) - return null; //app not initialized } + // Unable to determine profile, failover to default + if (activeProfile.getProfile() == null) + return null; //app not initialized Profile defaultProfile = activeProfile.getProfile().getDefaultProfile(); if (defaultProfile != null) return defaultProfile;