Pointer check was wrong, there was a slight possibility for a nullptr

dereference.
meow-7.2.2
Nicky Dasmijn 2020-06-14 20:40:17 +02:00
parent 6c4dadf08b
commit ec14e4ba7a
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ S32 FSFloaterVRAMUsage::calcVBOEntrySize( LLVertexBuffer *aVBO )
void FSFloaterVRAMUsage::onProperties( LLSelectNode const *aProps )
{
if( !aProps && !aProps->getObject() )
if( !aProps || !aProps->getObject() )
return;
LLUUID id = aProps->getObject()->getID();