Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NPE when returning double-brace-initialised things.
The previous code assumes that unmodifiableFoo(new Foo<> {{ }}) must be assigned to a variable, rather than returned by a function (or, who knows, it could just be a statement). Fixes #1040 RELNOTES: Fix NPE in DoubleBraceInitialization. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=211413826
- Loading branch information
1 parent
2783e13
commit ca3356d
Showing
2 changed files
with
126 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters