]> granicus.if.org Git - taglib/commitdiff
Check to make sure that there's content before trying to return it.
authorScott Wheeler <wheeler@kde.org>
Tue, 17 May 2005 21:27:51 +0000 (21:27 +0000)
committerScott Wheeler <wheeler@kde.org>
Tue, 17 May 2005 21:27:51 +0000 (21:27 +0000)
Almost the same as a patch from Clemens Fuchslocher

CCMAIL:clemens@allesdurcheinander.de

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@415211 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

ape/apeitem.cpp

index 7f3642414eb9a099ac5b7250c10415a5a5c55146..b65232db1ea389efce4a23557f76c2bfe705a8d5 100644 (file)
@@ -116,7 +116,7 @@ StringList APE::Item::toStringList() const
 
 String APE::Item::toString() const
 {
-  return d->text.front();
+  return isEmpty() ? String::null : d->text.front();
 }
 
 bool APE::Item::isEmpty() const