Skip to content

MarkLogicServerException.getServerStatusCode returns NullPointerException #1969

Description

@fromanu

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)

Metadata

Metadata

Labels

Bugmerged to developIndicates an issue has its related code merged into the develop branch for the next release

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions