Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Maetzel2004-06-09 13:28:08 +0000
committerKai Maetzel2004-06-09 13:28:08 +0000
commitfa1f3f60d413473a8854bd3e8a8c0d3883f947d8 (patch)
tree5d953f330c8dcf97b5018f854458c76e0fbb7548 /org.eclipse.core.filebuffers
parent6e7a30c40aff159d4a51791b02d22e189cd25f94 (diff)
downloadeclipse.platform.text-fa1f3f60d413473a8854bd3e8a8c0d3883f947d8.tar.gz
eclipse.platform.text-fa1f3f60d413473a8854bd3e8a8c0d3883f947d8.tar.xz
eclipse.platform.text-fa1f3f60d413473a8854bd3e8a8c0d3883f947d8.zip
#65930
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
index 7a2656424..54e9ebe89 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
@@ -34,12 +34,14 @@ public final class FileBuffers {
}
/**
- * Returns the text file buffer manager.
+ * Returns the text file buffer manager. May return <code>null</code> if
+ * the file buffers plug-in may no be activated.
*
* @return the text file buffer manager
*/
public static ITextFileBufferManager getTextFileBufferManager() {
- return FileBuffersPlugin.getDefault().getFileBufferManager();
+ FileBuffersPlugin plugin= FileBuffersPlugin.getDefault();
+ return plugin != null ? plugin.getFileBufferManager() : null;
}
/**

Back to the top