Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2008-04-23 17:34:59 -0400
committerAndrew Niefer2008-04-23 17:34:59 -0400
commit7cefbf6de7cba1fc17e21356216c855232b851d7 (patch)
tree030bf145025bf54c4bf8eb369033a8006507b2d5 /bundles
parentc68be59bbb8222c84afee577fb98503885160849 (diff)
downloadrt.equinox.p2-7cefbf6de7cba1fc17e21356216c855232b851d7.tar.gz
rt.equinox.p2-7cefbf6de7cba1fc17e21356216c855232b851d7.tar.xz
rt.equinox.p2-7cefbf6de7cba1fc17e21356216c855232b851d7.zip
fix NPE from null entry
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java2
1 files changed, 2 insertions, 0 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 89aa72a1d..9ca01065b 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
@@ -258,6 +258,8 @@ public class FeatureParser extends DefaultHandler {
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);
+ } else {
+ entry = FeatureEntry.createRequires(id, attributes.getValue("version"), attributes.getValue("match"), attributes.getValue("filter"), false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
} else {
id = attributes.getValue("plugin"); //$NON-NLS-1$

Back to the top