Skip to content
Snippets Groups Projects
Commit 228824e5 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix crash when deleting all electrodes on spike sorter

parent 3575a01c
Branches
Tags
No related merge requests found
......@@ -517,7 +517,8 @@ bool SpikeSorter::removeElectrode(int index)
void SpikeSorter::setElectrodeName(int index, String newName)
{
mut.enter();
electrodes[index-1]->name = newName;
if ((electrodes.size() > 0) && (index > 0))
electrodes[index-1]->name = newName;
//updateSinks(electrodes[index-1]->electrodeID, newName);
mut.exit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment