prof was dereferenced before checking for NULL. CID 1065

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38113 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2010-08-15 11:17:13 +00:00
parent f97e560e1c
commit afa2074362
+2 -2
View File
@@ -607,9 +607,9 @@ PackageView::_GroupChanged(int32 index)
fCurrentType = index;
pkg_profile *prof = fInfo.GetProfile(index);
BString test;
fInstallDesc->SetText(prof->description.String());
if (prof) {
fInstallDesc->SetText(prof->description.String());
BMenuItem *item = 0;
BPath path;
BMessage *temp;