Added null check

This commit is contained in:
roxana
2016-10-24 11:09:32 +03:00
parent 9e7ae77cd5
commit 4abeb19938

View File

@@ -280,7 +280,8 @@ public class DispositionServiceImpl extends ServiceBaseImpl
{
DispositionSchedule originDispositionSchedule = getOriginDispositionSchedule(nodeRef);
// if the initial disposition schedule of the record is folder based
if (isNotTrue(originDispositionSchedule.isRecordLevelDisposition()))
if (originDispositionSchedule!= null &&
isNotTrue(originDispositionSchedule.isRecordLevelDisposition()))
{
return null;
}