[cooja] plugins/LogListener: Prevent from throwing
ArrayIndexOutOfBoundsException in case of empty logTable
This commit is contained in:
parent
19cd33664d
commit
b53cee163d
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue