don't try to archive BHandler::fName when it is null

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25092 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-04-21 20:52:00 +00:00
parent f4103e2b13
commit 157c0ced17
1 changed files with 2 additions and 0 deletions

View File

@ -178,6 +178,8 @@ BHandler::Archive(BMessage *data, bool deep) const
if (status < B_OK) if (status < B_OK)
return status; return status;
if (!fName)
return B_OK;
return data->AddString(kArchiveNameField, fName); return data->AddString(kArchiveNameField, fName);
} }