fix bug overwriting source package on canonical resources

This commit is contained in:
Grahame Grieve 2023-09-07 17:06:24 +10:00
parent e081b27fd5
commit 4e92a7759a
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ public class CanonicalResourceManager<T extends CanonicalResource> {
} }
// -- 2. preparation ----------------------------------------------------------------------------- // -- 2. preparation -----------------------------------------------------------------------------
if (cr.resource != null) { if (cr.resource != null && cr.getPackageInfo() != null) {
cr.resource.setSourcePackage(cr.getPackageInfo()); cr.resource.setSourcePackage(cr.getPackageInfo());
} }