This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256004

Summary: NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Product: editor Reporter: 22bueno
Component: NavigationAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 220613
Attachments: stacktrace

Description 22bueno 2015-10-19 02:00:41 UTC
Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Windows 7

User Comments:
22bueno: <record>
  <date>2015-10-18T23:51:41</date>
  <millis>1445219501435</millis>
  <sequence>4812</sequence>
  <level>500</level>
  <thread>20</thread>
  <message>LOG_WINDOW_DEACTIVATED</message>
  <key>LOG_WINDOW_DEACTIVATED</key>
  <catalog>org.netbeans.core.ui.warmup.Bundle</catalog>
</record>
<record>
  <date>2015-10-18T23:51:58</date>
  <millis>1445219518352</millis>
  <sequence>4815</sequence>
  <level>500</level>
  <thread>670</thread>
  <message>LOG_WINDOW_ACTIVATED</message>
  <key>LOG_WINDOW_ACTIVATED</key>
  <catalog>org.netbeans.core.ui.warmup.Bundle</catalog>
  <param>74</param>
</record>
<record>
  <date>2015-10-18T23:52:40</date>
  <millis>1445219560096</millis>
  <sequence>4951</sequence>
  <level>1000</level>
  <thread>20</thread>
  <exception>
    <message>java.lang.NullPointerException</message>
    <frame>
      <class>javax.swing.text.JTextComponent</class>
      <method>getCaretPosition</method>
      <line>1644</line>
      <file>${java.home}lib/rt.jar</file>
    </f




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getCaretPosition(JTextComponent.java:1644)
   at org.netbeans.modules.editor.errorstripe.AnnotationView.getCurrentLine(AnnotationView.java:295)
   at org.netbeans.modules.editor.errorstripe.AnnotationView.paintComponent(AnnotationView.java:351)
   at javax.swing.JComponent.paint(JComponent.java:1056)
   at javax.swing.JComponent.paintChildren(JComponent.java:889)
   at javax.swing.JComponent.paint(JComponent.java:1065)
Comment 1 22bueno 2015-10-19 02:00:43 UTC
Created attachment 156788 [details]
stacktrace