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;
|
||||
synchronized (this) {
|
||||
if (suspendedStop != null) {
|
||||
powerdownTimer.cancel();
|
||||
if (powerdownTimer != null) {
|
||||
powerdownTimer.cancel();
|
||||
}
|
||||
suspendedStop.resumeHandling();
|
||||
suspendedStop = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue