diff options
author | Tomasz Zarna | 2015-03-03 09:30:15 +0000 |
---|---|---|
committer | Dani Megert | 2015-03-06 12:06:16 +0000 |
commit | 49a87b2578c002c5a6cdd4ffbb058ebbb9b6aeb1 (patch) | |
tree | d4ed2864ea714121e9aa24847155d399ddf99683 | |
parent | c46c781ea7caa13fad92c8b41786fd90a5d50147 (diff) | |
download | eclipse.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.java | 6 |
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)); |