RM-3285 - added null check for adding in cache

This commit is contained in:
Roxana Lucanu
2016-04-15 13:34:30 +03:00
parent 96bae15727
commit fe0d6a543b
2 changed files with 76 additions and 2 deletions

View File

@@ -430,8 +430,11 @@ public class ServiceBaseImpl implements RecordsManagementModel, ApplicationConte
}
}
// cache result in transaction
transactionCache.put(nodeRef, result);
// cache result in transaction if result is not null
if (result != null)
{
transactionCache.put(nodeRef, result);
}
}
}