mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +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) {
|
public void setEnabledFromSelection(ISelection selection) {
|
||||||
objects = null;
|
objects = null;
|
||||||
|
|
||||||
if (!selection.isEmpty()) {
|
if ((selection != null) && !selection.isEmpty()) {
|
||||||
// case for context menu
|
// case for context menu
|
||||||
Object[] obs = null;
|
Object[] obs = null;
|
||||||
if (selection instanceof IStructuredSelection) {
|
if (selection instanceof IStructuredSelection) {
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class ExcludeFromBuildHandler extends AbstractHandler {
|
||||||
cfgNames = null;
|
cfgNames = null;
|
||||||
boolean cfgsOK = true;
|
boolean cfgsOK = true;
|
||||||
|
|
||||||
if (!selection.isEmpty()) {
|
if ((selection != null) && !selection.isEmpty()) {
|
||||||
// case for context menu
|
// case for context menu
|
||||||
Object[] obs = null;
|
Object[] obs = null;
|
||||||
if (selection instanceof IStructuredSelection) {
|
if (selection instanceof IStructuredSelection) {
|
||||||
|
@ -142,7 +142,7 @@ public class ExcludeFromBuildHandler extends AbstractHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setBaseEnabled(cfgsOK && objects != null );
|
setBaseEnabled(cfgsOK && (objects != null));
|
||||||
}
|
}
|
||||||
|
|
||||||
private IFile getFileFromActiveEditor() {
|
private IFile getFileFromActiveEditor() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue