mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Bug 313823: Intermittent NPE during shutdown, in ThreadVMNode
This commit is contained in:
parent
00d4f39a66
commit
5256a869aa
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2008 Wind River Systems and others.
|
* Copyright (c) 2006, 2010 Wind River Systems and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -85,7 +85,9 @@ public class ThreadVMNode extends AbstractThreadVMNode
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabled(IStatus status, java.util.Map<String,Object> properties) {
|
public boolean isEnabled(IStatus status, java.util.Map<String,Object> properties) {
|
||||||
return !((Boolean)properties.get(ILaunchVMConstants.PROP_IS_SUSPENDED)).booleanValue();
|
// prop has been seen to be null during session shutdown [313823]
|
||||||
|
Boolean prop = (Boolean)properties.get(ILaunchVMConstants.PROP_IS_SUSPENDED);
|
||||||
|
return (prop != null) ? !prop.booleanValue() : false;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
new LabelImage(DebugUITools.getImageDescriptor(IDebugUIConstants.IMG_OBJS_THREAD_SUSPENDED)),
|
new LabelImage(DebugUITools.getImageDescriptor(IDebugUIConstants.IMG_OBJS_THREAD_SUSPENDED)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue