Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/internal/rpm/ui/editor/SpecfileReconcilingStrategy.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/internal/rpm/ui/editor/SpecfileReconcilingStrategy.java b/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/internal/rpm/ui/editor/SpecfileReconcilingStrategy.java
index f438f850fb..7069177447 100644
--- a/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/internal/rpm/ui/editor/SpecfileReconcilingStrategy.java
+++ b/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/internal/rpm/ui/editor/SpecfileReconcilingStrategy.java
@@ -79,8 +79,11 @@ public class SpecfileReconcilingStrategy implements IReconcilingStrategy, IRecon
private void updateEditor() {
Shell shell = editor.getSite().getShell();
if (!(shell == null || shell.isDisposed())) {
- shell.getDisplay().asyncExec(() -> editor
- .setSpecfile(editor.getParser().parse(documentProvider.getDocument(editor.getEditorInput()))));
+ // Bug 538050
+ if (documentProvider != null && documentProvider.getDocument(editor.getEditorInput()) != null) {
+ shell.getDisplay().asyncExec(() -> editor
+ .setSpecfile(editor.getParser().parse(documentProvider.getDocument(editor.getEditorInput()))));
+ }
}
}

Back to the top