changeset 5246:abbc53855b43

Fix RT-32472: NPE setting a broken image into a working ImageView with viewport Reviewed by: kcr, ckyang
author flar <James.Graham@oracle.com>
date Thu, 03 Oct 2013 06:51:27 -0700
parents b182b0b07282
children 8baf1c812ced
files modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGImageView.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGImageView.java	Thu Oct 03 14:01:58 2013 +0200
+++ b/modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGImageView.java	Thu Oct 03 06:51:27 2013 -0700
@@ -80,7 +80,7 @@
         renderable = false;
         coordsOK = true;
 
-        if (reqviewport == null) {
+        if (reqviewport == null || image == null) {
             renderable = image != null;
             return;
         }