Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2004-06-04 15:12:00 +0000
committerDani Megert2004-06-04 15:12:00 +0000
commit22d2b8d146f64fe35104dd01d12e81c276e5cf58 (patch)
treedbed29d7adbcd0889bc1f074d1421d76b70bbc73 /org.eclipse.core.filebuffers
parentab8a9c86e0a368805995694fc8ab3ab13812d9bf (diff)
downloadeclipse.platform.text-22d2b8d146f64fe35104dd01d12e81c276e5cf58.tar.gz
eclipse.platform.text-22d2b8d146f64fe35104dd01d12e81c276e5cf58.tar.xz
eclipse.platform.text-22d2b8d146f64fe35104dd01d12e81c276e5cf58.zip
Fixed bug 52610: [implementation] NPE in FileBuffers.normalizeLocation
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java2
1 files changed, 1 insertions, 1 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 447f95e5d..7a2656424 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
@@ -73,7 +73,7 @@ public final class FileBuffers {
for (int i= 0, length= projects.length; i < length; i++) {
IPath path= projects[i].getLocation();
- if (path.isPrefixOf(location)) {
+ if (path != null && path.isPrefixOf(location)) {
IPath filePath= location.removeFirstSegments(path.segmentCount());
filePath= projects[i].getFullPath().append(filePath);
return filePath.makeAbsolute();

Back to the top