We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ea56dc commit 0a876efCopy full SHA for 0a876ef
1 file changed
common/src/main/java/org/apache/comet/exceptions/CometQueryExecutionException.java
@@ -57,6 +57,8 @@ public CometQueryExecutionException(String jsonMessage) {
57
*/
58
public boolean isJsonMessage() {
59
String msg = getMessage();
60
- return msg != null && msg.trim().startsWith("{") && msg.trim().endsWith("}");
+ if (msg == null) return false;
61
+ String trimmed = msg.trim();
62
+ return trimmed.startsWith("{") && trimmed.endsWith("}");
63
}
64
0 commit comments