Merge pull request #640 from ejoerns/pull-req/cooja-loglistener-fix
[Cooja] plugins/LogListener: Prevent from throwing ArrayIndexOutOfBoundsException
This commit is contained in:
commit
3a08f77489
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue