mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MNT-17550: Add in null checks to prevent NPE and allow correct error codes to bubble up.
This commit is contained in:
@@ -33,8 +33,11 @@ public class ExtendedFileFolderServiceImpl extends FileFolderServiceImpl
|
||||
finally
|
||||
{
|
||||
recordService.enablePropertyEditableCheck();
|
||||
if (result != null)
|
||||
{
|
||||
recordService.disablePropertyEditableCheck(result.getNodeRef());
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -52,8 +55,11 @@ public class ExtendedFileFolderServiceImpl extends FileFolderServiceImpl
|
||||
finally
|
||||
{
|
||||
recordService.enablePropertyEditableCheck();
|
||||
if (result != null)
|
||||
{
|
||||
recordService.disablePropertyEditableCheck(result.getNodeRef());
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user