mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[apps] [code] Fix nullptr deref (fix #1176)
When scrolling up in the python shell history, `selectedCell` could be NULL.
This commit is contained in:
committed by
EmilieNumworks
parent
4b9e42d522
commit
2ec4bc29e0
@@ -267,7 +267,9 @@ void ConsoleController::tableViewDidChangeSelection(SelectableTableView * t, int
|
||||
}
|
||||
}
|
||||
ConsoleLineCell * selectedCell = (ConsoleLineCell *)(t->selectedCell());
|
||||
selectedCell->reloadCell();
|
||||
if (selectedCell) {
|
||||
selectedCell->reloadCell();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user