fixing java 8 build brake due to missing null check

4.x.x
inosh-perera 9 years ago
parent ad8df2d069
commit 6d7f024e8e

@ -94,8 +94,9 @@ public class BSTAuthenticator implements WebappAuthenticator {
@Override
public boolean canHandle(Request request) {
String contentType = request.getContentType();
if (contentType.contains("application/xml") || contentType.contains("application/soap+xml") ||
contentType.contains("application/text")) {
if (contentType != null && (contentType.contains("application/xml") || contentType.contains
("application/soap+xml") ||
contentType.contains("application/text"))) {
try {
return isBSTHeaderExists(request);
} catch (IOException | XMLStreamException e) {

Loading…
Cancel
Save