SOLR-14484: avoid putting null into MDC

Co-authored-by: Andras Salamon
This commit is contained in:
David Smiley 2020-05-20 09:46:15 -04:00
parent 57b7d8a8db
commit 2ac640f9d0
No known key found for this signature in database
GPG Key ID: 6FDFF3BF6796FD4A
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ public class ConcurrentUpdateHttp2SolrClient extends SolrClient {
// *must* be called with runners monitor held, e.g. synchronized(runners){ addRunner() }
private void addRunner() {
MDC.put("ConcurrentUpdateHttp2SolrClient.url", client.getBaseURL());
MDC.put("ConcurrentUpdateHttp2SolrClient.url", String.valueOf(client.getBaseURL())); // MDC can't have null value
try {
Runner r = new Runner();
runners.add(r);