Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-03-24 16:01:15 +0000
committerPawel Piech2011-03-24 16:01:15 +0000
commit4d3b97aeefa4ef86ffaf5ac7399b119009db5bd4 (patch)
treed2a0c46436b8615a2a8dc54a1003ab1800bd4296 /org.eclipse.debug.ui
parent94a5ff3494011025dd85fc9ee48c52b355a9dce1 (diff)
downloadeclipse.platform.debug-4d3b97aeefa4ef86ffaf5ac7399b119009db5bd4.tar.gz
eclipse.platform.debug-4d3b97aeefa4ef86ffaf5ac7399b119009db5bd4.tar.xz
eclipse.platform.debug-4d3b97aeefa4ef86ffaf5ac7399b119009db5bd4.zip
Fixed NPE in selectionChanged().
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/EditWatchExpressinInPlaceAction.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/EditWatchExpressinInPlaceAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/EditWatchExpressinInPlaceAction.java
index fbe8a3439..1b09da346 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/EditWatchExpressinInPlaceAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/EditWatchExpressinInPlaceAction.java
@@ -41,8 +41,8 @@ public class EditWatchExpressinInPlaceAction extends Action implements ISelectio
}
public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection selelection = fEditActionDelegate.getCurrentSelection();
- setEnabled(selelection.size() == 1);
+ IStructuredSelection selection = fEditActionDelegate.getCurrentSelection();
+ setEnabled(selection != null && selection.size() == 1);
}
public void dispose() {

Back to the top