Skip to content

Commit

Permalink
Fix: make size method also applicable to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gramian committed Mar 28, 2024
1 parent 5ed53b5 commit d2ddd9e
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 d2ddd9e

Please sign in to comment.