Prevent NPE when start fails.

This commit is contained in:
Michael Lipp 2023-06-18 13:28:44 +02:00
parent 0f3e185140
commit 080156157f

View file

@ -238,7 +238,9 @@ public class QemuMonitor extends Component {
monitorChannel = null; monitorChannel = null;
synchronized (this) { synchronized (this) {
if (suspendedStop != null) { if (suspendedStop != null) {
if (powerdownTimer != null) {
powerdownTimer.cancel(); powerdownTimer.cancel();
}
suspendedStop.resumeHandling(); suspendedStop.resumeHandling();
suspendedStop = null; suspendedStop = null;
} }