utils/HtmlOutputDev.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 147ae4bf76a85768c9ed729ca10ee3dae93b8876
Author: Albert Astals Cid <[email protected]>
Date:   Wed Jun 8 23:36:14 2011 +0100

    Do not crash if link does not have an action

diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 0c707da..dd84354 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -1341,6 +1341,8 @@ void HtmlOutputDev::doProcessLink(AnnotLink* link){
 
 GooString* HtmlOutputDev::getLinkDest(AnnotLink *link,Catalog* catalog){
   char *p;
+  if (!link->getAction())
+    return new GooString();
   switch(link->getAction()->getKind()) 
   {
       case actionGoTo:
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to