Why would a null key ever be passed in here? Parameters that can be null should be tagged with @Nullable.