Fix crash signature 608

This was a crash in LLPanelDirClassified::postBuild(), on the line changed here, probably accessng null pointer.
There are probably a few other signatures for this in our database.
This commit is contained in:
Inusaito Sayori
2014-09-02 10:53:36 -04:00
parent 0b384bdd72
commit 74704d0d2a
6 changed files with 14 additions and 6 deletions

View File

@@ -61,7 +61,8 @@ BOOL LLPanelDirGroups::postBuild()
childDisable("Search");
setDefaultBtn( "Search" );
childSetVisible("filter_gaming", (gAgent.getRegion()->getGamingFlags() & REGION_GAMING_PRESENT) && !(gAgent.getRegion()->getGamingFlags() & REGION_GAMING_HIDE_FIND_GROUPS));
LLViewerRegion* region(gAgent.getRegion());
getChildView("filter_gaming")->setVisible(region && (region->getGamingFlags() & REGION_GAMING_PRESENT) && !(region->getGamingFlags() & REGION_GAMING_HIDE_FIND_GROUPS));
return TRUE;
}