diff options
| author | 2023-08-01 14:14:43 -0700 | |
|---|---|---|
| committer | 2023-08-01 15:03:20 -0700 | |
| commit | e91d888272706b4948251117ff576acb2a4abf5a (patch) | |
| tree | 79147dc1a4c46a575109a30b30eaf14c3232bb2d /libs/androidfw/StringPool.cpp | |
| parent | ac8018752c2066e620f5dbcfd0ebc91f7cfbc922 (diff) | |
Add null check to Task#equals()
Adds a couple base conditions to Task#equals -- essentially so that if the comparison target is null, returns false.
In Java Platform SE 8 docs, Object#equals() implements "For any non-null reference value x, x.equals(null) should return false. Since Task#equals() overrides Object.equals(), we should implement this too.
Bug: 274835596
Test: Manual
Change-Id: If8e23f620c4f2c88d1e058325fdebc54022acf3b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions