Fix NPE when normalizing client tag URIs

See gh-11798
pull/11811/head
Phillip Webb 7 years ago
parent 3266c68a78
commit 53b0f0db60

@ -105,7 +105,7 @@ class MetricsClientHttpRequestInterceptor implements ClientHttpRequestIntercepto
}
private String ensureLeadingSlash(String url) {
return (url.startsWith("/") ? url : "/" + url);
return (url == null || url.startsWith("/") ? url : "/" + url);
}
}

Loading…
Cancel
Save