Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2013-04-26 17:49:26 +0000
committerMarkus Keller2013-04-26 17:49:26 +0000
commitd591cfb9ef83ea800d07f896bb3657ed4a22bd1b (patch)
tree80db6f8c3f740bd39c5396c0a77ffdd47d3f3b45
parent0ccdaa6315d0fbc1c1697d08118cc38aca949f64 (diff)
downloadeclipse.platform.text-I20130501-0800.tar.gz
eclipse.platform.text-I20130501-0800.tar.xz
eclipse.platform.text-I20130501-0800.zip
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
index 2c271fc0a..077d0646b 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -5097,7 +5097,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit
if (p instanceof IDocumentProviderExtension3) {
IDocumentProviderExtension3 p3= (IDocumentProviderExtension3) p;
isSynchronized= p3.isSynchronized(getEditorInput());
- } else {
+ } else if (p != null) {
long modifiedStamp= p.getModificationStamp(getEditorInput());
long synchStamp= p.getSynchronizationStamp(getEditorInput());
isSynchronized= (modifiedStamp == synchStamp);

Back to the top