fix NPE in adapter for invalid cors requests

This commit is contained in:
Bill Burke 2015-08-21 11:29:38 -04:00
parent eb4ffbca29
commit 457039d7ba

View file

@ -90,8 +90,7 @@ public class AuthenticatedActionsHandler {
if (allowedOrigins == null || (!allowedOrigins.contains("*") && !allowedOrigins.contains(origin))) {
if (allowedOrigins == null) {
log.debugv("allowedOrigins was null in token");
}
if (!allowedOrigins.contains("*") && !allowedOrigins.contains(origin)) {
} else {
log.debugv("allowedOrigins did not contain origin");
}