fix NPE when URL matcher is null in Remote Url
@@ -115,6 +115,7 @@ public class RemoteUrl {
final List<AuthorizationValue> header = new ArrayList<>();
if (auths != null && auths.size() > 0) {
for (AuthorizationValue auth : auths) {
+ if (auth.getUrlMatcher()!= null) {
if (auth.getUrlMatcher().test(inUrl)) {
if ("query".equals(auth.getType())) {
appendValue(inUrl, auth, query);
@@ -124,6 +125,7 @@ public class RemoteUrl {
}
}
}
+ }
if (!query.isEmpty()) {
final URI inUri = inUrl.toURI();
final StringBuilder newQuery = new StringBuilder(inUri.getQuery() == null ? "" : inUri.getQuery());
