aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
index 12ae3312c7..e112fac304 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
@@ -289,12 +289,12 @@ public class VAbstractSplitPanel extends ComplexPanel {
*/
private String checkSplitPositionLimits(String pos) {
float positionAsFloat = convertToPixels(pos);
- float maximumAsFloat = convertToPixels(maximumPosition);
- float minimumAsFloat = convertToPixels(minimumPosition);
- if (maximumAsFloat < positionAsFloat) {
+ if (maximumPosition != null
+ && convertToPixels(maximumPosition) < positionAsFloat) {
pos = maximumPosition;
- } else if (minimumAsFloat > positionAsFloat) {
+ } else if (minimumPosition != null
+ && convertToPixels(minimumPosition) > positionAsFloat) {
pos = minimumPosition;
}
return pos;