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
|
||||
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…
Reference in New Issue
Block a user