diff --git a/archery/src/main/java/com/github/romualdrousseau/archery/base/BaseSheet.java b/archery/src/main/java/com/github/romualdrousseau/archery/base/BaseSheet.java index 8da5223..e320635 100644 --- a/archery/src/main/java/com/github/romualdrousseau/archery/base/BaseSheet.java +++ b/archery/src/main/java/com/github/romualdrousseau/archery/base/BaseSheet.java @@ -21,8 +21,10 @@ import com.github.romualdrousseau.archery.event.TableGraphBuiltEvent; import com.github.romualdrousseau.archery.event.TableReadyEvent; import com.github.romualdrousseau.archery.intelli.IntelliTable; + import com.github.romualdrousseau.archery.TransformableSheet; import com.github.romualdrousseau.archery.commons.collections.CollectionUtils; +import com.github.romualdrousseau.archery.commons.strings.StringUtils; public class BaseSheet implements Sheet { @@ -258,7 +260,7 @@ public List searchCell(final String regex, final int offset, final int for(int i = 0; i < length; i++) { for (int j = 0; j < this.getLastColumnNum(offset + i); j++) { final var cell = this.getCellDataAt(j, offset + i); - if (cell != null && cell.matches(regex)) { + if (!StringUtils.isFastBlank(cell) && cell.matches(regex)) { if (++n == nth) { return List.of(j, offset + i); }