[Okular-devel] [Bug 179447] [Patch] Empty comicbook crash

Brad Hards bradh at frogmouth.net
Sat Jan 3 10:58:12 CET 2009


http://bugs.kde.org/show_bug.cgi?id=179447


Brad Hards bradh frogmouth net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bradh at frogmouth.net
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1




--- Comment #2 from Brad Hards <bradh frogmouth net>  2009-01-03 10:58:12 ---
Can reproduce.

Seems we should protect against this in core:

--- okular/core/document.cpp    (revision 903994)
+++ okular/core/document.cpp    (working copy)
@@ -1660,6 +1660,9 @@
     AudioPlayer::instance()->d->m_currentDocument = isstdin ? KUrl() :
d->m_url;
     d->m_docSize = document_size;

+    if ( !d->m_generator )
+        return false;
+
     const QStringList docScripts = d->m_generator->metaData(
"DocumentScripts", "JavaScript" ).toStringList();
     if ( !docScripts.isEmpty() )
     {


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list