summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_binddata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_binddata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_binddata.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_binddata.cpp b/xfa/fxfa/parser/cxfa_binddata.cpp
index c47e6534d9..79f375fa6a 100644
--- a/xfa/fxfa/parser/cxfa_binddata.cpp
+++ b/xfa/fxfa/parser/cxfa_binddata.cpp
@@ -11,6 +11,8 @@
CXFA_BindData::CXFA_BindData(CXFA_Node* pNode) : CXFA_DataData(pNode) {}
void CXFA_BindData::GetPicture(WideString& wsPicture) {
- if (CXFA_Node* pPicture = m_pNode->GetChild(0, XFA_Element::Picture, false))
- pPicture->JSNode()->TryContent(wsPicture, false, true);
+ CXFA_Node* pPicture = m_pNode->GetChild(0, XFA_Element::Picture, false);
+ if (!pPicture)
+ return;
+ wsPicture = pPicture->JSNode()->GetContent(false);
}