Skip to content

Commit

Permalink
minor error fix for webquery
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Jan 26, 2025
1 parent b1d9db8 commit 496eca4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public class WebQueryProtocol {
private static final MinetraxCommon common = MinetraxCommon.getInstance();

public static String processInput(String input) throws Exception {
// Return null if input is empty.
if (input == null || input.isEmpty()) {
throw new Exception("Empty request");
}

// Decrypt the input to plain text and map in JSON object.
WebQueryRequestData requestData = decryptRequest(input);

Expand Down

0 comments on commit 496eca4

Please sign in to comment.