mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-6355 Fix null pointer
(cherry picked from commit d22fc1f6ad7d0761e47931056328570e17a46f54)
This commit is contained in:
@@ -189,7 +189,15 @@ public abstract class ModulePatchComponent extends AbstractModuleComponent
|
|||||||
new String[]{REGISTRY_PATH_MODULES, moduleId, registryProperty});
|
new String[]{REGISTRY_PATH_MODULES, moduleId, registryProperty});
|
||||||
Serializable moduleVersion = this.registryService.getProperty(moduleKeyVersion);
|
Serializable moduleVersion = this.registryService.getProperty(moduleKeyVersion);
|
||||||
|
|
||||||
return new ModuleVersionNumber(moduleVersion.toString());
|
if (moduleVersion == null)
|
||||||
|
{
|
||||||
|
return VERSION_ZERO;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return new ModuleVersionNumber(moduleVersion.toString());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user