Skip to content

Commit

Permalink
Merge pull request #1528 from gramian/main
Browse files Browse the repository at this point in the history
Fix: make "size" method also applicable to strings
  • Loading branch information
mergify[bot] committed Mar 28, 2024
2 parents 5ed53b5 + d2ddd9e commit 8a111db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public Object execute(final Object iThis, final Identifiable iCurrentRecord, fin
if (ioResult != null) {
if (ioResult instanceof Identifiable) {
size = 1;
} else if (ioResult instanceof String) {
size = ioResult.toString().length();
} else {
size = MultiValue.getSize(ioResult);
}
Expand Down

0 comments on commit 8a111db

Please sign in to comment.