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:
parent
43b52f4190
commit
3c182b8cf9
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue