fix NPE
This commit is contained in:
parent
ad3794d32f
commit
ca27843dd7
1 changed files with 5 additions and 0 deletions
|
@ -307,6 +307,11 @@ public class APSResult {
|
||||||
PumpInterface pump = ConfigBuilderPlugin.getPlugin().getActivePump();
|
PumpInterface pump = ConfigBuilderPlugin.getPlugin().getActivePump();
|
||||||
Profile profile = ProfileFunctions.getInstance().getProfile();
|
Profile profile = ProfileFunctions.getInstance().getProfile();
|
||||||
|
|
||||||
|
if (profile == null) {
|
||||||
|
log.error("FALSE: No Profile");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (usePercent) {
|
if (usePercent) {
|
||||||
if (activeTemp == null && percent == 100) {
|
if (activeTemp == null && percent == 100) {
|
||||||
if (L.isEnabled(L.APS))
|
if (L.isEnabled(L.APS))
|
||||||
|
|
Loading…
Reference in a new issue