diff options
author | Albert Astals Cid <aacid@kde.org> | 2013-04-25 20:27:43 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2013-04-25 20:43:22 +0200 |
commit | 43d66e11aa9e692c1c6b3a237e7e972d317e5c4d (patch) | |
tree | 4605e6161d5918e21772e2b0c69b298aa8ad23a6 /utils | |
parent | 3c2a92b06a6541071bd1e555606bb2096de17ef6 (diff) |
Make sure getKids returns != 0 before using it
Fixes crash in bug #63909
Diffstat (limited to 'utils')
-rw-r--r-- | utils/HtmlOutputDev.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index 8d0ffeac..1130d8d4 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -1796,7 +1796,7 @@ GBool HtmlOutputDev::newHtmlOutlineLevel(FILE *output, GooList *outlines, Catalo atLeastOne = gTrue; item->open(); - if (item->hasKids()) + if (item->hasKids() && item->getKids()) { fputs("\n",output); newHtmlOutlineLevel(output, item->getKids(), catalog, level+1); @@ -1833,7 +1833,7 @@ void HtmlOutputDev::newXmlOutlineLevel(FILE *output, GooList *outlines, Catalog* delete titleStr; item->open(); - if (item->hasKids()) + if (item->hasKids() && item->getKids()) { newXmlOutlineLevel(output, item->getKids(), catalog); } |