mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
added a Null check for - modificationNotifier != null
This commit is contained in:
@@ -1432,7 +1432,6 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? supe
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* used to merge multiple segments and positions into a single index used by the bit map
|
||||
*
|
||||
@@ -1447,12 +1446,14 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? supe
|
||||
|
||||
public void onPut(long pos, SharedSegment segment) {
|
||||
changes.set(combine(segment.getIndex(), pos));
|
||||
modificationNotifier.onChange();
|
||||
if (modificationNotifier != null)
|
||||
modificationNotifier.onChange();
|
||||
}
|
||||
|
||||
public void onRemove(long pos, SharedSegment segment) {
|
||||
changes.set(combine(segment.getIndex(), pos));
|
||||
modificationNotifier.onChange();
|
||||
if (modificationNotifier != null)
|
||||
modificationNotifier.onChange();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user