mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fixing java 8 build brake due to missing null check
This commit is contained in:
parent
ad8df2d069
commit
6d7f024e8e
@ -94,8 +94,9 @@ public class BSTAuthenticator implements WebappAuthenticator {
|
|||||||
@Override
|
@Override
|
||||||
public boolean canHandle(Request request) {
|
public boolean canHandle(Request request) {
|
||||||
String contentType = request.getContentType();
|
String contentType = request.getContentType();
|
||||||
if (contentType.contains("application/xml") || contentType.contains("application/soap+xml") ||
|
if (contentType != null && (contentType.contains("application/xml") || contentType.contains
|
||||||
contentType.contains("application/text")) {
|
("application/soap+xml") ||
|
||||||
|
contentType.contains("application/text"))) {
|
||||||
try {
|
try {
|
||||||
return isBSTHeaderExists(request);
|
return isBSTHeaderExists(request);
|
||||||
} catch (IOException | XMLStreamException e) {
|
} catch (IOException | XMLStreamException e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user