check for null
This commit is contained in:
parent
7aa2aa4d24
commit
781aa6e657
1 changed files with 33 additions and 31 deletions
|
@ -259,6 +259,7 @@ public class OverviewFragment extends Fragment {
|
||||||
acceptTempButton.setOnClickListener(new View.OnClickListener() {
|
acceptTempButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
if (ConfigBuilderPlugin.getActiveLoop() != null) {
|
||||||
ConfigBuilderPlugin.getActiveLoop().invoke("Accept temp button", false);
|
ConfigBuilderPlugin.getActiveLoop().invoke("Accept temp button", false);
|
||||||
final LoopPlugin.LastRun finalLastRun = LoopPlugin.lastRun;
|
final LoopPlugin.LastRun finalLastRun = LoopPlugin.lastRun;
|
||||||
if (finalLastRun != null && finalLastRun.lastAPSRun != null && finalLastRun.constraintsProcessed.changeRequested) {
|
if (finalLastRun != null && finalLastRun.lastAPSRun != null && finalLastRun.constraintsProcessed.changeRequested) {
|
||||||
|
@ -294,6 +295,7 @@ public class OverviewFragment extends Fragment {
|
||||||
}
|
}
|
||||||
updateGUI();
|
updateGUI();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
pumpStatusView.setOnClickListener(new View.OnClickListener() {
|
pumpStatusView.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
Loading…
Reference in a new issue