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

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #227923 - NullPointerException at org.netbeans...
  • Date: Fri, 29 Mar 2013 15:43:43 -0700

changeset 6ce1f5f58469 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/6ce1f5f58469
description:
        #227923 - NullPointerException at 
org.netbeans.modules.editor.search.SearchComboBoxEditor.adjustScrollPaneSize

diffstat:

 
editor.search/src/org/netbeans/modules/editor/search/SearchComboBoxEditor.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/editor.search/src/org/netbeans/modules/editor/search/SearchComboBoxEditor.java
 
b/editor.search/src/org/netbeans/modules/editor/search/SearchComboBoxEditor.java
--- 
a/editor.search/src/org/netbeans/modules/editor/search/SearchComboBoxEditor.java
+++ 
b/editor.search/src/org/netbeans/modules/editor/search/SearchComboBoxEditor.java
@@ -203,7 +203,7 @@
     private static void adjustScrollPaneSize(JScrollPane sp, JEditorPane 
editorPane) {
         int height;
         Dimension prefSize = sp.getPreferredSize();
-        Insets borderInsets = sp.getBorder().getBorderInsets(sp); 
//sp.getInsets();
+        Insets borderInsets = sp.getBorder() != null ? 
sp.getBorder().getBorderInsets(sp) : sp.getInsets();
         int vBorder = borderInsets.bottom + borderInsets.top;
         EditorUI eui = org.netbeans.editor.Utilities.getEditorUI(editorPane);
         if (eui != null) {

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

Milutin Kristofic 03/29/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