Skip to content

SOLR-17034: Hitting /solr// ends up with HttpSolrCall NPE#2020

Merged
risdenk merged 1 commit intoapache:mainfrom
risdenk:SOLR-17034
Oct 23, 2023
Merged

SOLR-17034: Hitting /solr// ends up with HttpSolrCall NPE#2020
risdenk merged 1 commit intoapache:mainfrom
risdenk:SOLR-17034

Conversation

@risdenk
Copy link
Copy Markdown
Contributor

@risdenk risdenk commented Oct 17, 2023

Copy link
Copy Markdown
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you tested manually. A trivial test somewhere would be nice. Could use LogListener to detect the NPE then lack of it after fix.

Copy link
Copy Markdown
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@risdenk
Copy link
Copy Markdown
Contributor Author

risdenk commented Oct 23, 2023

Yea I looked at adding a test for this but couldn't find a good place. I think its pretty obvious that origCoreName can be null since a few lines later is on line 1181 is:

if (origCorename != null) {

so there is obviously a need for this check in normal cases.

@risdenk risdenk merged commit 68ecfaf into apache:main Oct 23, 2023
@risdenk risdenk deleted the SOLR-17034 branch October 23, 2023 15:01
risdenk added a commit that referenced this pull request Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants