mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
MacOSX: looks like sometimes, an unlisted contribution is requested to the underlying tablemodel. Weird
This commit is contained in:
parent
e45dcba6c9
commit
f1fc0797e1
@ -201,6 +201,9 @@ public class LibrariesIndexTableModel extends FilteredAbstractTableModel<Contrib
|
||||
|
||||
@Override
|
||||
public Object getValueAt(int row, int col) {
|
||||
if (row >= contributions.size()) {
|
||||
return null;
|
||||
}
|
||||
ContributedLibraryReleases contribution = contributions.get(row);
|
||||
if (col == DESCRIPTION_COL) {
|
||||
return contribution;// .getSelected();
|
||||
|
@ -196,6 +196,9 @@ public class ContributionIndexTableModel extends FilteredAbstractTableModel<Cont
|
||||
|
||||
@Override
|
||||
public Object getValueAt(int row, int col) {
|
||||
if (row >= contributions.size()) {
|
||||
return null;
|
||||
}
|
||||
ContributedPlatformReleases contribution = contributions.get(row);
|
||||
if (col == DESCRIPTION_COL) {
|
||||
return contribution;// .getSelected();
|
||||
|
Loading…
Reference in New Issue
Block a user