Skip to content

Commit

Permalink
fix: null message handle
Browse files Browse the repository at this point in the history
  • Loading branch information
almax07082005 committed Nov 3, 2024
1 parent c45a507 commit 60095ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public String toString() {
}

public static Pair<Commands, String> fromString(String name) throws NotCommandException {
if (name == null) {
throw new NotCommandException();
}

String[] commandsList = name.split(" ");
if (commandsList[0].equals("/start") && commandsList.length == 2) {
Expand Down

0 comments on commit 60095ad

Please sign in to comment.