Skip to content

Commit 74bf349

Browse files
committed
disabled group remove illegal argument exceotion
1 parent 85a8d23 commit 74bf349

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/main/java/tesseract/graph/Group.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ private void internalRemove(long pos, Consumer<Group<T, C, N>> split) {
279279
// The contains() check can be skipped here, because Graph will only call remove() if it knows that the group contains the entry.
280280
// For now, it is retained for completeness and debugging purposes.
281281
if (!contains(pos)) {
282-
throw new IllegalArgumentException("Group::remove: Tried to call with a position that does not exist within the group.");
282+
//Tesseract.LOGGER.error(new IllegalArgumentException("Group::remove: Tried to call with a position that does not exist within the group."));
283+
return;
283284
}
284285

285286
// If removing the entry would not cause a group split, then it is safe to remove the entry directly.

0 commit comments

Comments
 (0)