BPackageInfo::_ExtractUsers(): fix no group case

This commit is contained in:
Ingo Weinhold
2013-07-06 02:09:08 +02:00
parent 4174191272
commit a28a0ac6b2
+1 -1
View File
@@ -1654,7 +1654,7 @@ BPackageInfo::_ExtractUsers(BMessage* archive, const char* field,
return error;
BStringList groups;
if (!groupsString.Split(" ", false, groups))
if (!groupsString.IsEmpty() && !groupsString.Split(" ", false, groups))
return B_NO_MEMORY;
BUser* user = new(std::nothrow) BUser(name, realName, home, shell,