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:
@@ -188,8 +188,16 @@ public abstract class ModulePatchComponent extends AbstractModuleComponent
|
||||
RegistryKey moduleKeyVersion = new RegistryKey(ModuleComponentHelper.URI_MODULES_1_0,
|
||||
new String[]{REGISTRY_PATH_MODULES, moduleId, registryProperty});
|
||||
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