Fix issue with origin jars containing no MANIFEST
[cc0/argeo-build.git] / src / org / argeo / build / Repackage.java
index 8a1a809be5c634ef0cbbb102e26c129b6c08b5da..e9f8a3370f26890521d01c5ad4ec84d0833390ae 100644 (file)
@@ -1131,7 +1131,7 @@ public class Repackage {
                                origin.deleted.add("MANIFEST header " + manifestEntry.getKey());
                                break;
                        default:
-                               if (!sourceManifest.getMainAttributes().containsKey(manifestEntry.getKey()))
+                               if (sourceManifest != null && !sourceManifest.getMainAttributes().containsKey(manifestEntry.getKey()))
                                        origin.added.add("MANIFEST header " + manifestEntry.getKey());
                        }
                }