Skip to content

Commit

Permalink
[MODORDERS-1209]. Fix failing handleGetPieces
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Dec 3, 2024
1 parent 8e712a4 commit b06b291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/folio/rest/impl/MockServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ private void handleGetPieces(RoutingContext ctx) {
String requestQuery = ctx.request().getParam("query");
MultiMap requestHeaders = ctx.request().headers();
logger.info("handleGetPieces requestPath: {}, requestQuery: {}, requestHeaders: {}", requestPath, requestQuery, requestHeaders);
if (requestQuery.contains(ID_FOR_PIECES_INTERNAL_SERVER_ERROR)) {
if (Objects.nonNull(requestQuery) && requestQuery.contains(ID_FOR_PIECES_INTERNAL_SERVER_ERROR)) {
logger.info("handleGetPieces (with internal server error)");
addServerRqRsData(HttpMethod.GET, PIECES_STORAGE, new JsonObject());
serverResponse(ctx, 500, APPLICATION_JSON, Response.Status.INTERNAL_SERVER_ERROR.getReasonPhrase());
Expand Down

0 comments on commit b06b291

Please sign in to comment.