-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NullPointerException in ConfigCommand.diffOptions() #13434
Fix NullPointerException in ConfigCommand.diffOptions() #13434
Conversation
`@Nullable FragmentOptionsForOutput options1` should be checked for being null before use. `bazel config` can otherwise crash, e.g. as the test configuration nowadays is trimmed.
Interesting observation. Does this apply to both printing and diffing a configuration? i.e. both |
I only tried |
Do you mind trying I don't know how familiar you are with the |
|
I'm sorry, but to be clear, you mean on the unpatched version? If all of those work with your patch that's all I'm asking for. :) |
Sorry for being unclear. I've now also run all four variants with both patched and unpatched version. Instead of crashing with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much!
@Nullable FragmentOptionsForOutput options1
should be checked for beingnull
before use.bazel config
can otherwise crash, e.g. as the test configuration nowadays is trimmed.