fix memory leak and possible nullptr read
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -734,7 +734,7 @@ namespace ScriptCanvasEditor
|
||||
{
|
||||
ui->statusTableView->clearSelection();
|
||||
|
||||
if (auto model = GetActiveData().second->GetModel())
|
||||
if (auto model = GetActiveData().second ? GetActiveData().second->GetModel() : nullptr)
|
||||
{
|
||||
model->Clear();
|
||||
model->RunValidation(m_activeGraphIds.scriptCanvasId);
|
||||
|
||||
Reference in New Issue
Block a user