mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-09 17:25:00 +00:00
[cooja] plugins/LogListener: Prevent from throwing
ArrayIndexOutOfBoundsException in case of empty logTable
This commit is contained in:
@@ -383,6 +383,9 @@ public class LogListener extends VisPlugin implements HasQuickHelp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int rowIndex = logTable.rowAtPoint(e.getPoint());
|
int rowIndex = logTable.rowAtPoint(e.getPoint());
|
||||||
|
if (rowIndex == -1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
LogData d = logs.get(logTable.getRowSorter().convertRowIndexToModel(rowIndex));
|
LogData d = logs.get(logTable.getRowSorter().convertRowIndexToModel(rowIndex));
|
||||||
if (d == null) {
|
if (d == null) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user