Skip to content
Snippets Groups Projects
  • akmokhtari's avatar
    2017c1c9
    Handle the case when no electrode is selected · 2017c1c9
    akmokhtari authored
    This fixes a segfault that happened when no electrode was selected on a spike detector (e.g., with no electrodes added); getSelectedItemIndex returns -1 in this case, which was causing an array bounds segfault in drawElectrodeButtons.
    2017c1c9
    History
    Handle the case when no electrode is selected
    akmokhtari authored
    This fixes a segfault that happened when no electrode was selected on a spike detector (e.g., with no electrodes added); getSelectedItemIndex returns -1 in this case, which was causing an array bounds segfault in drawElectrodeButtons.