MAINT-6901 safety checks fix

andreykproductengine 2016-11-21 22:58:07 +02:00
parent fb0355fdba
commit 416a46711d
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ void LLModel::normalizeModels(std::vector<LLPointer<LLModel > > model_list)
{
LLPointer<LLModel> model = *iter++;
if (model.get() && model->mVolumeFaces.empty())
if (model.notNull() && !model->mVolumeFaces.empty())
{
// For all of the volume faces
// in the model, loop over
@ -285,7 +285,7 @@ void LLModel::normalizeModels(std::vector<LLPointer<LLModel > > model_list)
{
LLPointer<LLModel> model = *iter++;
if (model->mVolumeFaces.empty())
if (model.isNull() || model->mVolumeFaces.empty())
{
continue;
}