Skip to content

Commit

Permalink
Add Preconditions check to help assess a NPE we saw.
Browse files Browse the repository at this point in the history
The NPE seems impossible, but let's see if this Preconditions check fires and shows us it's actually possible.

PiperOrigin-RevId: 642260180
Change-Id: I0a6ae3c96ff56798b5f108b14229afb09a9c84d1
  • Loading branch information
haxorz authored and copybara-github committed Jun 11, 2024
1 parent 17ee62e commit dc62a5f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ static SkyKey key(Object obj) {
* to {@link #op} when decoding an operation emitted by this method.
*/
static Object create(SkyKey key, Op op, IncrementalInMemoryNodeEntry entry) {
Preconditions.checkNotNull(key);
if (op == ReverseDepsUtility.getOpToStoreBare(entry)) {
return key;
}
Expand Down

0 comments on commit dc62a5f

Please sign in to comment.