Skip to content

Commit

Permalink
fix: add NP check
Browse files Browse the repository at this point in the history
  • Loading branch information
emptyOVO committed Sep 7, 2024
1 parent c249ab9 commit 60a7db1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public RepeatFunction(Function expr) {
public Object parse(SourceData sourceData, int rowIndex, Context context) {
Object stringObj = stringParser.parse(sourceData, rowIndex, context);
Object countObj = countParser.parse(sourceData, rowIndex, context);
if (stringObj == null || countObj == null) {
return null;
}
if (stringObj.equals("") || countObj.equals("")) {
return "";
}
Expand Down

0 comments on commit 60a7db1

Please sign in to comment.