MarkLogicServerException.getServerStatusCode returns NullPointerException in case the failedRequest is null:
public int getServerStatusCode() { return (failedRequest == null) ? null : failedRequest.getStatusCode(); }
because the return type of the method is a primitive int.
Stack trace:
java.lang.NullPointerException: Cannot invoke \"java.lang.Integer.intValue()\"\n\tat com.marklogic.client.MarkLogicServerException.getServerStatusCode(MarkLogicServerException.java:54)
(We are currently using the marklogic-java-client in version 8.1.0 and the Markogic Server in 11.3.6)
MarkLogicServerException.getServerStatusCode returns NullPointerException in case the failedRequest is null:
public int getServerStatusCode() { return (failedRequest == null) ? null : failedRequest.getStatusCode(); }because the return type of the method is a primitive int.
Stack trace:
java.lang.NullPointerException: Cannot invoke \"java.lang.Integer.intValue()\"\n\tat com.marklogic.client.MarkLogicServerException.getServerStatusCode(MarkLogicServerException.java:54)(We are currently using the marklogic-java-client in version 8.1.0 and the Markogic Server in 11.3.6)