From ec14e4ba7a8567ff62891d5f6bc62e9ed2380e63 Mon Sep 17 00:00:00 2001 From: Nicky Dasmijn Date: Sun, 14 Jun 2020 20:40:17 +0200 Subject: [PATCH] Pointer check was wrong, there was a slight possibility for a nullptr dereference. --- indra/newview/fsfloatervramusage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/fsfloatervramusage.cpp b/indra/newview/fsfloatervramusage.cpp index f808a57a65..7f55295038 100644 --- a/indra/newview/fsfloatervramusage.cpp +++ b/indra/newview/fsfloatervramusage.cpp @@ -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();