Check to make sure that there's content before trying to return it.

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
This commit is contained in:
Scott Wheeler 2005-05-17 21:27:51 +00:00
parent fc8c7d357b
commit 10d8a4deac

View 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