adityamparikh opened a new pull request, #114:
URL: https://github.com/apache/solr-mcp/pull/114

   ## Summary
   - Remove overly broad `catch (Exception e)` from 
`validateCollectionExists()` that silently converted all errors (including NPE, 
ClassCastException) to "collection not found"
   - `listCollections()` already catches `SolrServerException | IOException` 
internally, so the try-catch was unnecessary
   - Unexpected RuntimeExceptions now propagate naturally instead of being 
swallowed
   - Update tests that relied on the swallowed NPE to properly stub 
`listCollections()`
   
   ## Test plan
   - [x] `./gradlew build` passes (all 228 tests, 0 failures)
   - [x] `./gradlew nativeTest -Pnative` passes (119/119 tests)
   - [x] No regressions — existing `validateCollectionExists` tests continue to 
pass
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to