Added a NULL check to prevent crash in RAM watch window.

This commit is contained in:
Matthew Budd 2020-05-23 16:20:40 -04:00
parent 11d02a31c4
commit 484f299107
1 changed files with 5 additions and 0 deletions

View File

@ -934,6 +934,11 @@ static void ramWatch_cell_edited_cb (GtkCellRendererText * cell,
rw = ramWatchList.getIndex (rww->ramWatchEditRowIdx);
if ( rw == NULL )
{
return;
}
switch (rww->ramWatchEditColIdx)
{
case 0: