Skip to content

Commit 5073d13

Browse files
committed
Don't fail with NPE on non existing manifest
Fixes eclipse-pde/eclipse.pde#1272
1 parent 5364d5d commit 5073d13

File tree

1 file changed

+7
-0
lines changed
  • bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/pde/internal/publishing

1 file changed

+7
-0
lines changed

bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/pde/internal/publishing/Utils.java

+7
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ public static String[] getBundleClasspath(Dictionary<String, String> manifest) {
103103
return result;
104104
}
105105

106+
/**
107+
* @param manifest manifest entries, or {@code null}
108+
* @return requested header value, or {@code null}
109+
*/
106110
public static String getBundleManifestHeader(Dictionary<String, String> manifest, String header) {
111+
if (manifest == null) {
112+
return null;
113+
}
107114
String value = manifest.get(header);
108115
if (value != null)
109116
return value;

0 commit comments

Comments
 (0)