added a Null check for - modificationNotifier != null

This commit is contained in:
leventov
2015-07-25 19:19:38 +03:00
parent 81a20e6751
commit da06ba106e
2 changed files with 7 additions and 11 deletions
@@ -528,7 +528,8 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
LOG.debug("raise change: id {}, segment {}, pos {}",
localIdentifier, segmentIndex, pos);
changesForUpdates.set(combine(segmentIndex, pos));
modificationNotifier.onChange();
if (modificationNotifier != null)
modificationNotifier.onChange();
}
boolean dropChange(long segmentIndex, long pos) {