Prevent NPE when start fails.
This commit is contained in:
parent
0f3e185140
commit
080156157f
1 changed files with 3 additions and 1 deletions
|
|
@ -238,7 +238,9 @@ public class QemuMonitor extends Component {
|
||||||
monitorChannel = null;
|
monitorChannel = null;
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (suspendedStop != null) {
|
if (suspendedStop != null) {
|
||||||
powerdownTimer.cancel();
|
if (powerdownTimer != null) {
|
||||||
|
powerdownTimer.cancel();
|
||||||
|
}
|
||||||
suspendedStop.resumeHandling();
|
suspendedStop.resumeHandling();
|
||||||
suspendedStop = null;
|
suspendedStop = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue