Kaydet (Commit) c910e229 authored tarafından Caolán McNamara's avatar Caolán McNamara

guard against null pContent

Change-Id: Ia4f2dff9c3cb81bb5056f005b23420cab1ca49e5
üst dd43c614
......@@ -90,6 +90,10 @@ void XFCell::Add(XFContent *pContent)
assert(false);
return;
}
if (!pContent)
{
throw std::runtime_error("no content");
}
if( pContent->GetContentType() == enumXFContentTable )
{
XFTable *pTable = static_cast<XFTable*>(pContent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment