Skip to content

Commit 2014006

Browse files
returning null if needed
1 parent 4621d45 commit 2014006

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands/src/main/java/com/wizardlybump17/wlib/command/extractor/method/factory/object/InstantCommandNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public InstantCommandNode(@NotNull String name, @NotNull List<CommandNode<?>> ch
2020

2121
@Override
2222
public @Nullable Instant parse(@NotNull String input) throws InputParsingException {
23+
if (input.equalsIgnoreCase("null"))
24+
return null;
2325
try {
2426
return Instant.parse(input);
2527
} catch (DateTimeParseException e) {

0 commit comments

Comments
 (0)