Revision bde20ac8
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/CdmTransientEntityCacher.java | ||
---|---|---|
158 | 158 |
// if the cdm identifier set contains identifiers of objects already |
159 | 159 |
// present in the updated objects set reomve them |
160 | 160 |
for(CdmBase updatedObject : updatedObjects) { |
161 |
if(exists(new CdmEntityCacheKey(updatedObject.getClass(), updatedObject.getId()))) { |
|
161 |
if(updatedObject != null && exists(new CdmEntityCacheKey(updatedObject.getClass(), updatedObject.getId()))) {
|
|
162 | 162 |
CdmEntityIdentifier cdmEntityIdentifier = new CdmEntityIdentifier(updatedObject.getId(), updatedObject.getClass()); |
163 | 163 |
if(!updatedCdmIdsIsEmpty && updatedCdmIds.contains(cdmEntityIdentifier)) { |
164 | 164 |
updatedCdmIds.remove(cdmEntityIdentifier); |
Also available in: Unified diff
Check if updated objects are null