summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Arnab Sen <arnabse@amazon.com> 2023-04-27 19:31:07 +0530
committer Arnab Sen <arnabse@amazon.com> 2023-05-24 06:00:42 +0000
commitc5171f785c4ff20383bed1d4fcb5063555bee214 (patch)
tree176a980cb29e3556be1748ffbf3dbcfb62db15a6 /libs/androidfw/AssetsProvider.cpp
parent62434fd9fe6338b0355506b31fa4a9e733b0c030 (diff)
Fix NullPointerException in GestureDetector
NPE can be thrown from GestureDetector on GestureDetector#cancel which can crash an app as VelocityTracker object is not checked for null before calling VelocityTracker#recycle. This change fixes the issue by checking for null VelocityTracker before calling VelocityTracker#recycle on GestureDetector#cancel. Test: Precautionary fix to prevent crashes, no test was run Change-Id: I805ac4a19fbd766a9d0f17732b158f1d1e61aae6
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions