Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NullPointerException in cquery --output=graph.
Fixes bazelbuild#12915. The repro from the bug crashes because these two deps are compared: `Target: @remote_java_tools_linux//:java_tools/src/tools/singlejar/singlejar_local` `Config: d8d0eb07eb92791668ac973282be1523379b0025b22f0ade56b13d519f2feb2a` `Target: @remote_java_tools_linux//:java_tools/src/tools/singlejar/singlejar_local` `Config: null` This is a `cc_binary`: https://github.com/bazelbuild/bazel/blob/0c1257ed4e1b83f8d0f6c79d641f6bfcf4d1cfc4/src/tools/singlejar/BUILD#L92-L93 I have no idea why the graph visitor tags one of its instances with a null configuration. Nevertheless, this code is still safer. Closes bazelbuild#13002. PiperOrigin-RevId: 357259481
- Loading branch information