summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Avichal Rakesh <arakesh@google.com> 2024-08-07 17:22:18 -0700
committer Avichal Rakesh <arakesh@google.com> 2024-08-07 17:50:05 -0700
commitc21dcc02d9fe7de0e55c3fc587322f63ee86b1c8 (patch)
tree1ef79934850a4e3d50e5d8aff0c7922b4ef89e51 /libs/androidfw/AttributeResolution.cpp
parent9cb0284772ddbc3931941893efcf1b6fe37a38f6 (diff)
camera2: Fix NPE in SessionConfiguration#hashCode
SessionConfiguration#hashCode currently calls mInputConfig.hashCode() which may lead to a NullPointerException if mInputConfig is not set. This patch replaces the mInputConfig.hashCode() call with Objects.hashCode(mInputConfig) to ensure that null value of mInputConfig is properly handled, and indicates that mOutputConfigurations cannot be null by contract. Bug: 358211021 Test: Verified that calling SessionConfiguration#hashCode() with null mInputConfig no longer throws a NullPointerException. Flag: EXEMPT minor bugfix Change-Id: I30a7e1cb2372a42d4c3af2e2659bc429111b4dae
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions