[ 
https://issues.apache.org/jira/browse/SOLR-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716255#action_12716255
 ] 

Noble Paul commented on SOLR-1200:
----------------------------------

If a core does not exist 'unload'ing that core is not possible . So it is an 
error. 

For status command. it would be better to return "no such  core exists"

> NullPointerException when unloading an absent core
> --------------------------------------------------
>
>                 Key: SOLR-1200
>                 URL: https://issues.apache.org/jira/browse/SOLR-1200
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: java version "1.6.0_07"
>            Reporter: Peter Wolanin
>            Assignee: Noble Paul
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-1200.patch, SOLR-1200.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I try to unload a core that does not exist (e.g. it has already been 
> unloaded), Solr throws a NullPointerException
> java.lang.NullPointerException
>        at 
> org.apache.solr.handler.admin.CoreAdminHandler.handleUnloadAction(CoreAdminHandler.java:319)
>        at 
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:125)
>        at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>        at 
> org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:301)
>        at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:174)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to