Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/ui/src/main/java/org/phoebus/ui/docking/DockPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ else if (dock_parent instanceof SplitPane) // "dock_parent instanceof SplitPane"
final SplitPane parent = (SplitPane) dock_parent;
// Remove this dock pane from BorderPane
Optional<Double> dividerPosition;
if (parent.getDividerPositions().length > 1) {
if (parent.getDividerPositions().length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use Arrays.isNullOrEmpty

dividerPosition = Optional.of(parent.getDividerPositions()[0]);
}
else {
Expand Down