[hg] main-silver: #233058 - NullPointerException at org.netbeans...

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #233058 - NullPointerException at org.netbeans...
  • Date: Tue, 23 Jul 2013 00:51:06 -0700

changeset 738745e7c3ae in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/738745e7c3ae
description:
        #233058 - NullPointerException at 
org.netbeans.modules.options.colors.ColorModel$Preview$3.caretUpdate

diffstat:

 options.editor/src/org/netbeans/modules/options/colors/ColorModel.java |  4 
+++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff --git 
a/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java 
b/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java
--- a/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java
+++ b/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java
@@ -385,7 +385,9 @@
                     }
                     int offset = e.getDot ();
                     String elementName = null;
-                    
+                    if (editorPane == null) {
+                        return;
+                    }
                     TokenHierarchy<Document> th = 
TokenHierarchy.get(editorPane.getDocument());
                     if (th != null) {
                         elementName = findLexerElement(th, offset);

[hg] main-silver: #233058 - NullPointerException at org.netbeans...

Milutin Kristofic 07/23/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 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