diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/configBuilder/ProfileFunctions.java b/app/src/main/java/info/nightscout/androidaps/plugins/configBuilder/ProfileFunctions.java index 0e38758e86..b9276a5ac3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/configBuilder/ProfileFunctions.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/configBuilder/ProfileFunctions.java @@ -102,7 +102,8 @@ public class ProfileFunctions { } public boolean isProfileValid(String from) { - return getProfile() != null && getProfile().isValid(from); + Profile profile = getProfile(); + return profile != null && profile.isValid(from); } @Nullable