[ https://issues.apache.org/jira/browse/SOLR-16971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763880#comment-17763880 ]
Alex Deparvu commented on SOLR-16971: ------------------------------------- I believe this was introduced with changes for SOLR-15705 which can return the shard as null in certain cases. > RealTimeGet with Composite router throws NPE > -------------------------------------------- > > Key: SOLR-16971 > URL: https://issues.apache.org/jira/browse/SOLR-16971 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Alex Deparvu > Assignee: Alex Deparvu > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > RealTimeGet with Composite router throws NPE at slice resolution time making > it unusable. > I would like to add a check and possibly return nothing instead of the NPE. > {noformat} > [c:content s:shard1 r:core_node3 x:content_shard1_replica_n1] > o.a.s.h.RequestHandlerBase java.lang.NullPointerException: > Cannot invoke "org.apache.solr.common.cloud.Slice.getName()" because "slice" > is null => > java.lang.NullPointerException: Cannot invoke > "org.apache.solr.common.cloud.Slice.getName()" because "slice" is null > {noformat} > one workaround is to pass "_route_" param. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org