[hg] main-silver: #238058: Fix of NPE.

  • From:
  • To:
  • Subject: [hg] main-silver: #238058: Fix of NPE.
  • Date: Thu, 07 Nov 2013 19:58:45 +0000

changeset f686a3723d2c in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f686a3723d2c
description:
        #238058: Fix of NPE.

diffstat:

 
debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/RemoteFXScreenshot.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/RemoteFXScreenshot.java
 
b/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/RemoteFXScreenshot.java
--- 
a/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/RemoteFXScreenshot.java
+++ 
b/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/RemoteFXScreenshot.java
@@ -126,7 +126,7 @@
         final Method convertImage = 
imageClass.concreteMethodByName("impl_toExternalImage", 
"(Ljava/lang/Object;)Ljava/lang/Object;");
         final Method renderImage = 
sceneClass.concreteMethodByName("renderToImage", 
"(Ljava/lang/Object;FZ)Ljava/lang/Object;");
         // FX 2.2 API (works in FX 8)
-        final Method fromFXImage = 
utilsClass.concreteMethodByName("fromFXImage", 
"(Ljavafx/scene/image/Image;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;");
+        final Method fromFXImage = (utilsClass != null) ? 
utilsClass.concreteMethodByName("fromFXImage", 
"(Ljavafx/scene/image/Image;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;")
 : null;
         final Method snapshot = sceneClass.concreteMethodByName("snapshot", 
"(Ljavafx/scene/image/WritableImage;)Ljavafx/scene/image/WritableImage;");
 
         ObjectReference scene = (ObjectReference) window.invokeMethod(tr, 
getScene, Collections.EMPTY_LIST, ObjectReference.INVOKE_SINGLE_THREADED);

[hg] main-silver: #238058: Fix of NPE.

mentlicher 11/07/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close