You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DefaultDockingStrategy.getSibling throws NPE for a dockable that is not docked #31
Javadoc for getSibling(Dockable) and getSibling(Dockable, String) says they return null when the dockable is not docked. Instead they throw a NullPointerException in findRegion (DefaultDockingStrategy.java:242)
This happens because DockingManager.getDockingPort returns null and thenport.getDockedComponent() is called on it.
To reproduce, call DefaultDockingStrategy.getSibling(new View("id", "title")) for a view that was never docked.
Fixed by #36 (commit 1d79760): findRegion() now returns null when the dockable has no docking port, so both getSibling() overloads return null as documented. Covered by SiblingDockingTest.testNoSiblingForUndockedDockable.
Activity
danilovesky commentedon Nov 23, 2026
Fixed by #36 (commit 1d79760):
findRegion()now returns null when the dockable has no docking port, so bothgetSibling()overloads return null as documented. Covered bySiblingDockingTest.testNoSiblingForUndockedDockable.