Skip to content

Commit 496eca4

Browse files
committed
minor error fix for webquery
1 parent b1d9db8 commit 496eca4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

common/src/main/java/com/xinecraft/minetrax/common/webquery/protocol/WebQueryProtocol.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ public class WebQueryProtocol {
1212
private static final MinetraxCommon common = MinetraxCommon.getInstance();
1313

1414
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+
1520
// Decrypt the input to plain text and map in JSON object.
1621
WebQueryRequestData requestData = decryptRequest(input);
1722

0 commit comments

Comments
 (0)