summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Shuzhen Wang <shuzhenwang@google.com> 2024-09-25 23:04:33 -0700
committer Shuzhen Wang <shuzhenwang@google.com> 2024-09-26 08:34:57 -0700
commit7f974147592c4d3242a5ae6fca70b2ed079912ea (patch)
tree9d4d43487183fa4fe34698f902176f9e744d38b0 /libs/androidfw/AttributeResolution.cpp
parent6c8fbe78efc9fec71ab21ebdd42f3141e632b915 (diff)
ImageWriter: Check Surface is valid before use
For some reason, getProducer() returns a nullptr even though the JNI context is valid. The only explanation is that ~JNIImageWriterContext is called right before ImageWriter_attachAndQueueImage(). When ImageWriter_attachAndQueueImage() is called, the context is still valid even though mProducer is already cleared. Flag: EXEMPT bug-fix Test: ImageWriterTest Bug: 362116761 Change-Id: Id24e7fc7ac63e703146337690f42df99e3daac5b
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions