check for null
This commit is contained in:
parent
7aa2aa4d24
commit
781aa6e657
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue