Fix invocation policy's handling of the null default when filtering values.

For a filter on option values (either by whitelist, allow_values, or blacklist, disallow_values), one of the options for what to do when encountering a disallowed value is to replace it with the default. This default must be itself an allowed value for this to make sense, so this is checked. This check, however, shouldn't apply to flags that are null by default, since these flags' default value is not parsed by the converter, so there is no guarantee that there exists an accepted user-input value that would also set the value to NULL. In these cases, we assume that "unset" is a distinct value that is always allowed.

RELNOTES: None.
PiperOrigin-RevId: 187475696
GitOrigin-RevId: 06e687495b4c85f86215c7cc7f1a01dc7f6709f9
Change-Id: I1949e180ce32094faf0f46bc7cd627f464ca53f6
1 file changed
tree: babd1b74b1187469c226152ee1abb30e837d11db
  1. java/
  2. test/