You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/03/31 19:52:07 UTC

[GitHub] [solr] sonatype-lift[bot] commented on a change in pull request #783: SOLR-16131: Fix class loader for jdbcStream

sonatype-lift[bot] commented on a change in pull request #783:
URL: https://github.com/apache/solr/pull/783#discussion_r839966279



##########
File path: solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
##########
@@ -175,6 +175,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
       assert null != mdcSnapshot; // prevent compiler warning
       MDCLoggingContext.reset();
       MDCLoggingContext.setNode(getCores());
+      Thread.currentThread().setContextClassLoader(getCores().getResourceLoader().getClassLoader());

Review comment:
       *NULL_DEREFERENCE:*  object returned by `getCores()` could be null and is dereferenced at line 178.
   
   (at-me [in a reply](https://help.sonatype.com/lift/talking-to-lift) with `help` or `ignore`)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org