Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2018-10-23 11:23:35 -0400
committerKarsten Thoms2018-10-23 11:24:33 -0400
commitac10dcb9a7b35618e02c5074137977066d4570d7 (patch)
tree2a3bd2e777ba59e18c6e138ffe3f7b5760651d53 /org.eclipse.ui.workbench.texteditor
parentbed03cffc0cc47fd681d9c57b5c04a95df805273 (diff)
downloadeclipse.platform.text-ac10dcb9a7b35618e02c5074137977066d4570d7.tar.gz
eclipse.platform.text-ac10dcb9a7b35618e02c5074137977066d4570d7.tar.xz
eclipse.platform.text-ac10dcb9a7b35618e02c5074137977066d4570d7.zip
Change-Id: I41930aa80dadd4bf098760daa8aaa7e1e0e4dafe Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextSelectionNavigationLocation.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextSelectionNavigationLocation.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextSelectionNavigationLocation.java
index cd85aac97..c246301d3 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextSelectionNavigationLocation.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextSelectionNavigationLocation.java
@@ -64,6 +64,9 @@ public class TextSelectionNavigationLocation extends NavigationLocation {
if (initialize) {
+ if (part == null || part.getSelectionProvider() == null) {
+ return;
+ }
ISelection s= part.getSelectionProvider().getSelection();
if(s == null || s.isEmpty())
return;

Back to the top