changeset 4616:31b419ce59fe

RT-31866 - Regression : NPE when showing popup with TextArea content, fix from Martin
author mickf
date Mon, 12 Aug 2013 18:10:30 +0100
parents 29b2f94d77c7
children b3c20547e8aa
files modules/controls/src/main/java/javafx/scene/control/ScrollPane.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/ScrollPane.java	Mon Aug 12 17:25:15 2013 +0100
+++ b/modules/controls/src/main/java/javafx/scene/control/ScrollPane.java	Mon Aug 12 18:10:30 2013 +0100
@@ -518,7 +518,7 @@
 
     public final ObjectProperty<Bounds> viewportBoundsProperty() {
         if (viewportBounds == null) {
-            viewportBounds = new SimpleObjectProperty<Bounds>(this, "viewportBounds");
+            viewportBounds = new SimpleObjectProperty<Bounds>(this, "viewportBounds", new BoundingBox(0,0,0,0));
         }
         return viewportBounds;
     }