Skip to content

Commit 61b24e3

Browse files
committed
ignore tabs that aren't DockItemWithInput
1 parent c5256c8 commit 61b24e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/ux-analytics/monitor/src/main/java/org/phoebus/applications/uxanalytics/monitor/representation/ActiveWindowsService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ private void reinitialize(){
153153
for(DockItem tab: item.getDockItems()){
154154
try {
155155
activeWindowsAndTabs.get(windowID).add((DockItemWithInput) tab);
156-
} catch (Exception e) {
156+
}
157+
catch (ClassCastException ignored){
158+
//not a DockItemWithInput
159+
}
160+
catch (Exception e) {
157161
throw new RuntimeException(e);
158162
}
159163
}

0 commit comments

Comments
 (0)