Skip to content
Snippets Groups Projects
Commit ebd7e43d authored by Alfredo Chissotti's avatar Alfredo Chissotti
Browse files

bug fix

parent 6416b30d
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ public class Home implements HttpHandler { ...@@ -42,7 +42,7 @@ public class Home implements HttpHandler {
response = getKeycloak(); response = getKeycloak();
strlist.add("text/json"); strlist.add("text/json");
} }
if(!Helper.compareText(response, "fail")){ if(response != null && !Helper.compareText(response, "fail")){
exchange.getResponseHeaders().put("content-type", strlist); exchange.getResponseHeaders().put("content-type", strlist);
exchange.sendResponseHeaders(200, response.getBytes().length); exchange.sendResponseHeaders(200, response.getBytes().length);
OutputStream os = exchange.getResponseBody(); OutputStream os = exchange.getResponseBody();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment