Skip to content

Commit 9a9d761

Browse files
authored
Merge pull request #3616 from ControlSystemStudio/CSSTUDIO-3537
CSSTUDIO-3537 Bugfix: Fix check for non-zero-length array (For ESS-specific navigator)
2 parents b6248e4 + 6e521bc commit 9a9d761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ui/src/main/java/org/phoebus/ui/docking/DockPane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ else if (dock_parent instanceof SplitPane) // "dock_parent instanceof SplitPane"
658658
final SplitPane parent = (SplitPane) dock_parent;
659659
// Remove this dock pane from BorderPane
660660
Optional<Double> dividerPosition;
661-
if (parent.getDividerPositions().length > 1) {
661+
if (parent.getDividerPositions().length > 0) {
662662
dividerPosition = Optional.of(parent.getDividerPositions()[0]);
663663
}
664664
else {

0 commit comments

Comments
 (0)