Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Fixed issue #584 (#586)
Browse files Browse the repository at this point in the history
Fixed a Nullpointer exception in one.microstream.collections.lazy.LazySegmentUnloader.remove in case of no loaded segments.

(cherry picked from commit f036cb5)
  • Loading branch information
hg-ms authored and zdenek-jonas committed Jul 4, 2023
1 parent d1e2bf0 commit 850c818
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ public LazySegmentUnloader copy()
@Override
public void remove(final LazySegment<?> segment)
{
this.loadedSegments.remove(segment);
if(this.loadedSegments != null)
{
this.loadedSegments.remove(segment);
}
}

}
Expand Down Expand Up @@ -313,7 +316,10 @@ public LazySegmentUnloader copy()
@Override
public void remove(final LazySegment<?> segment)
{
this.loadedSegments.remove(segment);
if(this.loadedSegments != null)
{
this.loadedSegments.remove(segment);
}
}

}
Expand Down

0 comments on commit 850c818

Please sign in to comment.