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
+1 -1
View File
@@ -607,9 +607,9 @@ PackageView::_GroupChanged(int32 index)
fCurrentType = index; fCurrentType = index;
pkg_profile *prof = fInfo.GetProfile(index); pkg_profile *prof = fInfo.GetProfile(index);
BString test; BString test;
fInstallDesc->SetText(prof->description.String());
if (prof) { if (prof) {
fInstallDesc->SetText(prof->description.String());
BMenuItem *item = 0; BMenuItem *item = 0;
BPath path; BPath path;
BMessage *temp; BMessage *temp;