diff options
author | Albert Astals Cid <aacid@kde.org> | 2011-06-08 23:36:14 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2011-06-08 23:37:04 +0100 |
commit | d8cf657d597289e5d0395562ef313f8de7a7b606 (patch) | |
tree | 0ec3caab8525e7684056e86afaffeeb3288723ee | |
parent | 305c5a8e6b9d79fc0648417da1035b19b628b67d (diff) |
Do not crash if link does not have an action
(cherry picked from commit 147ae4bf76a85768c9ed729ca10ee3dae93b8876)
-rw-r--r-- | utils/HtmlOutputDev.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index ede5700d..f8975725 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -1413,6 +1413,8 @@ void HtmlOutputDev::doProcessLink(Link* link){ GooString* HtmlOutputDev::getLinkDest(Link *link,Catalog* catalog){ char *p; + if (!link->getAction()) + return new GooString(); switch(link->getAction()->getKind()) { case actionGoTo: |