commit | c573b71d2ab51819a7074574f2fced662e815052 | [log] [tgz] |
---|---|---|
author | Winson Chiu <chiuwinson@google.com> | Wed Oct 19 16:43:28 2022 +0000 |
committer | Winson Chiu <chiuwinson@google.com> | Wed Oct 19 16:46:39 2022 +0000 |
tree | d77686be805ce3ec1f6a26869786bbee23cc71b0 | |
parent | ebd7eeabad997b23e0a8c6e9cb9adfda094bb295 [diff] |
Handle nullable sysprop for tryParseBoolean When mocking SystemProperties, reading a boolean value fails because the code tries to convert it to lowercase without a null check. This changes it so that null input is returned as a null Boolean before the toLowerCase call. Change-Id: Ia595341409bd927f4fa51c918fe4a052bb2bcdce