Skip to content

Commit

Permalink
Don't fail with NPE on non existing manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed May 16, 2024
1 parent 5364d5d commit 6d91445
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ public static String[] getBundleClasspath(Dictionary<String, String> manifest) {
return result;
}

/**
* @param manifest manifest entries, or {@code null}
* @return requested header value, or {@code null}
*/
public static String getBundleManifestHeader(Dictionary<String, String> manifest, String header) {
if (manifest == null) {
return null;
}
String value = manifest.get(header);
if (value != null)
return value;
Expand Down

0 comments on commit 6d91445

Please sign in to comment.