| Index: fpdfsdk/src/fpdfview.cpp
|
| diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
|
| index 43feaf4d5a9154999eb40c893fbe60ef5b59337a..219e458c7a8876c57b3da2e7af4ca95aaf2b0b6c 100644
|
| --- a/fpdfsdk/src/fpdfview.cpp
|
| +++ b/fpdfsdk/src/fpdfview.cpp
|
| @@ -850,7 +850,7 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index,
|
| if (!pDestObj) return NULL;
|
| if (pDestObj->GetType() == PDFOBJ_DICTIONARY)
|
| pDestObj = ((CPDF_Dictionary*)pDestObj)->GetArray(FX_BSTRC("D"));
|
| - if (pDestObj->GetType() != PDFOBJ_ARRAY) return NULL;
|
| + if (!pDestObj || pDestObj->GetType() != PDFOBJ_ARRAY) return NULL;
|
| CFX_WideString wsName = PDF_DecodeText(bsName);
|
| CFX_ByteString utf16Name = wsName.UTF16LE_Encode();
|
| unsigned int len = utf16Name.GetLength();
|
|
|