1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 317707: Fixed NPE during shutdown

This commit is contained in:
John Cortell 2010-06-29 18:11:44 +00:00
parent 43b52f4190
commit 3c182b8cf9
2 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@ public class DeleteResConfigsHandler extends AbstractHandler {
public void setEnabledFromSelection(ISelection selection) {
objects = null;
if (!selection.isEmpty()) {
if ((selection != null) && !selection.isEmpty()) {
// case for context menu
Object[] obs = null;
if (selection instanceof IStructuredSelection) {

View file

@ -83,7 +83,7 @@ public class ExcludeFromBuildHandler extends AbstractHandler {
cfgNames = null;
boolean cfgsOK = true;
if (!selection.isEmpty()) {
if ((selection != null) && !selection.isEmpty()) {
// case for context menu
Object[] obs = null;
if (selection instanceof IStructuredSelection) {
@ -142,7 +142,7 @@ public class ExcludeFromBuildHandler extends AbstractHandler {
}
}
}
setBaseEnabled(cfgsOK && objects != null );
setBaseEnabled(cfgsOK && (objects != null));
}
private IFile getFileFromActiveEditor() {