Skip to content

Commit

Permalink
Quick fix for error when opening preferences (#4917)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr authored Apr 23, 2019
1 parent eaf6bf8 commit 23e9e52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jabref/gui/preferences/TableColumnsTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ public void setValues() {
if (extraFileColumns.isSelected()) {
List<String> desiredColumns = prefs.getStringList(JabRefPreferences.LIST_OF_FILE_COLUMNS);
int listSize = listOfFileColumns.getSelectionModel().getSelectedIndex();
if (listSize < 0) {
listSize = 0;
}
int[] indicesToSelect = new int[listSize];
for (int i = 0; i < listSize; i++) {
indicesToSelect[i] = listSize + 1;
Expand Down

0 comments on commit 23e9e52

Please sign in to comment.