diff options
author | Pawel Piech | 2011-03-24 16:01:15 +0000 |
---|---|---|
committer | Pawel Piech | 2011-03-24 16:01:15 +0000 |
commit | 4d3b97aeefa4ef86ffaf5ac7399b119009db5bd4 (patch) | |
tree | d2a0c46436b8615a2a8dc54a1003ab1800bd4296 /org.eclipse.debug.ui | |
parent | 94a5ff3494011025dd85fc9ee48c52b355a9dce1 (diff) | |
download | eclipse.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.java | 4 |
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() { |