Skip to content

Commit

Permalink
Fixes #188. Dynamic dockables that fail to load in tabbed panes handl…
Browse files Browse the repository at this point in the history
…ed better now.
  • Loading branch information
andrewauclair committed Jan 6, 2024
1 parent 4710a0c commit 1f1cb05
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ public void addTab(String persistentID) {
}
return;
}
String className = DockingInternal.get(docking).getDockable(persistentID).getClass().getCanonicalName();
String className = "";
try {
className = DockingInternal.get(docking).getDockable(persistentID).getClass().getCanonicalName();
}
catch (Exception ignored) {
}

DockingSimplePanelNode tab = new DockingSimplePanelNode(docking, persistentID, className);
tab.setParent(this);
Expand Down

0 comments on commit 1f1cb05

Please sign in to comment.