diff options
author | 2020-07-09 16:58:14 +0100 | |
---|---|---|
committer | 2020-07-09 17:22:31 +0100 | |
commit | f6cc2617336fc5d5d9e4fcebbd7d120dc5d8ebce (patch) | |
tree | 48026ab7cfdd7f950489d7b67c8e07d2eae9ff89 /java/java_test.go | |
parent | 2c79c871d9a7e521a77a9fd0466eb932f5c92cc1 (diff) |
Handle empty / undefined slice-type product variables uniformly.
When checking for the emptiness / non-existence of a product variable
having the type of a slice, check the length of this variable against
zero, instead of checking the variable itself against `nil`, as
empty / undefined list product variables may appear as nil or empty
lists -- the former approach works with both nil and empty lists,
while the latter only works with nil lists.
Test: m nothing
Bug: 159241638
Change-Id: Id436a13f8633bf698b64e6901662f67657034486
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions