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:32:04 +0200 |
commit | 11ab42e7e90099d0cebf8f02197413fd5dee044b (patch) | |
tree | 738b350e2afd57d2522e3254d9273bebe6612ef1 | |
parent | 4ee78e77f7d6cadc8e150ceff96b546ddca329d4 (diff) |
Make sure getKids returns != 0 before using it
Fixes crash in bug #63909
-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 a718380f..8fd2dd15 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -1795,7 +1795,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); @@ -1832,7 +1832,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); } |