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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user