Skip to content

Commit

Permalink
Potential fix for Library tab issue (JabRef#8474)
Browse files Browse the repository at this point in the history
Fixes JabRef#614#issuecomment-1021577802
  • Loading branch information
Siedlerchr authored Jan 29, 2022
1 parent b16160e commit d710c9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ public LibraryTab getLibraryTabAt(int i) {
*/
public List<LibraryTab> getLibraryTabs() {
return tabbedPane.getTabs().stream()
.map(tab -> (LibraryTab) tab)
.filter(LibraryTab.class::isInstance)
.map(LibraryTab.class::cast)
.collect(Collectors.toList());
}

Expand Down

0 comments on commit d710c9a

Please sign in to comment.