Merge branch 'feature-2.4/RM-3285' into 'release/V2.4'

Feature 2.4/rm 3285

Added check not to be able to put null in cache, for nodes that are not records and don't have a filePlan.
Added unit test for it.

See merge request !128
This commit is contained in:
Roxana Lucana-Ghetu
2016-04-15 13:44:57 +01:00
2 changed files with 104 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);
}
}
}