Add a null check before getting unicode text in CPDF_FormField::GetValue
authorJun Fang <jun_fang@foxitsoftware.com>
Mon, 18 Aug 2014 18:30:19 +0000 (11:30 -0700)
committerJun Fang <jun_fang@foxitsoftware.com>
Mon, 18 Aug 2014 18:30:19 +0000 (11:30 -0700)
commit91177a4d73be70344caab2a62f6610672165207f
tree7179197fe50b6d59ad2254da1f1360177e59a712
parent4f38edb402226948b637b99de8a6a123bdef20c7
Add a null check before getting unicode text in CPDF_FormField::GetValue

The test pdf file defines an invalid dictionary object with a NULL arrary
in the filed of "/V". It causes that a NULL object is returned when trying
to get the first element of this arrary. So it needs to check whether the
returned object is NULL.

BUG=395986
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/478183002
core/src/fpdfdoc/doc_formfield.cpp