summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-07 20:43:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-07 21:56:58 +0000
commit89efbdd440343bd10b03fc80b6e396aea3215e90 (patch)
treec0387768ca20060ba18fb1bc1619ab1e87ff882f /unoxml
parentf57dd1e34caa4f5e92490fbebdca0ddce256ad54 (diff)
coverity#440749 Explicit null dereferenced
Change-Id: I0927e51d0cdb53b5bd20d4f1cf567cbfb4b377da
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/node.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 50adabea55e0..c863a0eee1bb 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -905,7 +905,7 @@ namespace DOM
if (pNew->next != nullptr)
pNew->next->prev = pNew;
pNew->parent = pOld->parent;
- // coverity[var_deref_op] pNew->parent cannot be NULL here
+ assert(pNew->parent && "coverity[var_deref_op] pNew->parent cannot be NULL here");
if(pNew->parent->children == pOld)
pNew->parent->children = pNew;
if(pNew->parent->last == pOld)