Changeset 340


Ignore:
Timestamp:
Apr 1, 2010, 10:11:47 PM (12 years ago)
Author:
dmik
Message:

branches/kmk: Poppler plugin: Don't try to read NULL text field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kmk/Lucide/plugins/lupoppler/lupitext.cpp

    r338 r340  
    102102
    103103    delete[] somThis->contents;
     104    somThis->contents = NULL;
    104105
    105106    GooString *gooStr = somThis->widget->getContent();
    106     somThis->contents = uniUtf16BEToUtf8( gooStr->getCString(), gooStr->getLength(),
    107                                           NULL, NULL );
     107    if ( gooStr )
     108        somThis->contents =
     109            uniUtf16BEToUtf8( gooStr->getCString(), gooStr->getLength(),
     110                              NULL, NULL );
     111
    108112    return somThis->contents;
    109113}
Note: See TracChangeset for help on using the changeset viewer.