We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d9db8 commit 496eca4Copy full SHA for 496eca4
1 file changed
common/src/main/java/com/xinecraft/minetrax/common/webquery/protocol/WebQueryProtocol.java
@@ -12,6 +12,11 @@ public class WebQueryProtocol {
12
private static final MinetraxCommon common = MinetraxCommon.getInstance();
13
14
public static String processInput(String input) throws Exception {
15
+ // Return null if input is empty.
16
+ if (input == null || input.isEmpty()) {
17
+ throw new Exception("Empty request");
18
+ }
19
+
20
// Decrypt the input to plain text and map in JSON object.
21
WebQueryRequestData requestData = decryptRequest(input);
22
0 commit comments