Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-04-23 21:03:51 +0000
committerJohn Arthorne2008-04-23 21:03:51 +0000
commitf7cc4b9ab0568b59ee7d8e1e3056845957c936b4 (patch)
tree067e473b22add11bd4e2a872f6ff25f2b3e50d3e
parentaa8a348ab1f8fde09b8309ad8399953f662fb54a (diff)
downloadrt.equinox.p2-f7cc4b9ab0568b59ee7d8e1e3056845957c936b4.tar.gz
rt.equinox.p2-f7cc4b9ab0568b59ee7d8e1e3056845957c936b4.tar.xz
rt.equinox.p2-f7cc4b9ab0568b59ee7d8e1e3056845957c936b4.zip
Avoid NPE when feature does not have patch attribute
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java
index 9b7f3a8ec..89aa72a1d 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java
@@ -255,7 +255,7 @@ public class FeatureParser extends DefaultHandler {
String id = attributes.getValue("feature"); //$NON-NLS-1$
FeatureEntry entry = null;
if (id != null) {
- if (attributes.getValue("patch").equalsIgnoreCase("true")) { //$NON-NLS-1$ //$NON-NLS-2$
+ if ("true".equalsIgnoreCase(attributes.getValue("patch"))) { //$NON-NLS-1$ //$NON-NLS-2$
entry = FeatureEntry.createRequires(id, attributes.getValue("version"), "perfect", attributes.getValue("filter"), false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
entry.setPatch(true);
}

Back to the top