Skip to content

Commit

Permalink
Avoid an exception as pathInfo can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchou59 committed Mar 7, 2024
1 parent 7028e2f commit e58b30d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public DeploymentResourceResponse getDeploymentResource(@ApiParam(name = "deploy
restApiInterceptor.accessDeploymentById(deployment);
}

String pathInfo = request.getPathInfo();
String resourceName = pathInfo.replace("/repository/deployments/" + deploymentId + "/resources/", "");
String ressourceURI = request.getRequestURI();
String resourceName = ressourceURI.replace(request.getContextPath()+"/repository/deployments/" + deploymentId + "/resources/", "");

List<String> resourceList = repositoryService.getDeploymentResourceNames(deploymentId);

Expand Down

0 comments on commit e58b30d

Please sign in to comment.