diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2014-07-25 11:25:42 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2014-07-25 11:25:42 +0200 |
commit | f302864ed354b313ec39433f65ca3b107b55789d (patch) | |
tree | fd992734e22e5545a77e6071bd91f48f0a7649ed /glib/poppler-annot.cc | |
parent | 13a5c5f4b61d05f2d18f94ad15e210a47021a576 (diff) |
glib: Return NULL in poppler_annot_get_contents also for empty strings
Diffstat (limited to 'glib/poppler-annot.cc')
-rw-r--r-- | glib/poppler-annot.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/poppler-annot.cc b/glib/poppler-annot.cc index 13bc7680..e87bce33 100644 --- a/glib/poppler-annot.cc +++ b/glib/poppler-annot.cc @@ -799,7 +799,7 @@ poppler_annot_get_contents (PopplerAnnot *poppler_annot) contents = poppler_annot->annot->getContents (); - return contents ? _poppler_goo_string_to_utf8 (contents) : NULL; + return contents && contents->getLength() > 0 ? _poppler_goo_string_to_utf8 (contents) : NULL; } /** |