check for null

This commit is contained in:
Milos Kozak 2017-04-14 16:10:20 +02:00
parent 7aa2aa4d24
commit 781aa6e657

View file

@ -259,6 +259,7 @@ public class OverviewFragment extends Fragment {
acceptTempButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (ConfigBuilderPlugin.getActiveLoop() != null) {
ConfigBuilderPlugin.getActiveLoop().invoke("Accept temp button", false);
final LoopPlugin.LastRun finalLastRun = LoopPlugin.lastRun;
if (finalLastRun != null && finalLastRun.lastAPSRun != null && finalLastRun.constraintsProcessed.changeRequested) {
@ -294,6 +295,7 @@ public class OverviewFragment extends Fragment {
}
updateGUI();
}
}
});
pumpStatusView.setOnClickListener(new View.OnClickListener() {