diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 20:43:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 21:56:58 +0000 |
commit | 89efbdd440343bd10b03fc80b6e396aea3215e90 (patch) | |
tree | c0387768ca20060ba18fb1bc1619ab1e87ff882f /unoxml | |
parent | f57dd1e34caa4f5e92490fbebdca0ddce256ad54 (diff) |
coverity#440749 Explicit null dereferenced
Change-Id: I0927e51d0cdb53b5bd20d4f1cf567cbfb4b377da
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/node.cxx | 2 |
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) |