Skip to content

Commit 51a7d4c

Browse files
author
Marcel Overdijk
committed
Fix for object hadlers and subroutines returning null
1 parent 7cfff74 commit 51a7d4c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rivescript-core/src/main/java/com/rivescript/RiveScript.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,9 @@ private String processTags(String username, String message, String reply, List<S
20212021
} else {
20222022
output = this.errorMessages.get("objectNotFound");
20232023
}
2024+
if (output == null) {
2025+
output = "";
2026+
}
20242027

20252028
reply = reply.replace(matcher.group(0), output);
20262029
}

0 commit comments

Comments
 (0)