Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2015-03-03 09:30:15 +0000
committerDani Megert2015-03-06 12:06:16 +0000
commit49a87b2578c002c5a6cdd4ffbb058ebbb9b6aeb1 (patch)
treed4ed2864ea714121e9aa24847155d399ddf99683
parentc46c781ea7caa13fad92c8b41786fd90a5d50147 (diff)
downloadeclipse.pde.ui-49a87b2578c002c5a6cdd4ffbb058ebbb9b6aeb1.tar.gz
eclipse.pde.ui-49a87b2578c002c5a6cdd4ffbb058ebbb9b6aeb1.tar.xz
eclipse.pde.ui-49a87b2578c002c5a6cdd4ffbb058ebbb9b6aeb1.zip
Bug 236040 - Exception while opening certain build.properties file
Change-Id: Ibb4b119f33793bdda7c7893cbd668d778e3580d2 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BuildContentsSection.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BuildContentsSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BuildContentsSection.java
index 4f693d19b7..4a58fae5ed 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BuildContentsSection.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BuildContentsSection.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 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
@@ -275,7 +275,9 @@ public abstract class BuildContentsSection extends TableSection implements IReso
while (iter.hasNext()) {
String resource = iter.next().toString();
boolean isIncluded = includes.contains(resource);
- if (resource.equals(".") || resource.equals("./") || resource.equals(".\\")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ if (resource.isEmpty()) {
+ // ignore - empty line
+ } else if (resource.equals(".") || resource.equals("./") || resource.equals(".\\")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// ignore - should be root directory
} else if (resource.lastIndexOf(IPath.SEPARATOR) == resource.length() - 1) {
IFolder folder = fBundleRoot.getFolder(new Path(resource));

Back to the top