Commit 906f3651 by nixonrodrigues

ATLAS-1878 - Fix for NPE when a request without any query path lands on atlas

parent c6081ddc
......@@ -44,6 +44,11 @@ public class AtlasAuthorizationUtils {
if (isDebugEnabled) {
LOG.debug("==> getApi({})", contextPath);
}
if(contextPath == null){
contextPath = "";
}
if (contextPath.startsWith(BASE_URL)) {
contextPath = contextPath.substring(BASE_URL.length());
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment