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 248401 - NullPointerException at javax.swing.text.JTextComponent.getSelectionStart
Summary: NullPointerException at javax.swing.text.JTextComponent.getSelectionStart
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-04 17:18 UTC by katsuke
Modified: 2015-09-05 03:03 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213144


Attachments
stacktrace (1.58 KB, text/plain)
2014-11-04 17:18 UTC, katsuke
Details
stacktrace (1.58 KB, text/plain)
2015-08-04 06:54 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description katsuke 2014-11-04 17:18:53 UTC
Build: NetBeans IDE Dev (Build 201410190001)
VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_71-mockbuild_2014_10_15_10_02-b00
OS: Linux

User Comments:
katsuke: right click project, select git, select diff, change selected revision to develop, click diff. Scroll through the changes, got exception.

Php project.




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1819)
   at org.netbeans.modules.php.dbgp.annotations.ToolTipAnnotation.getSelectedText(ToolTipAnnotation.java:287)
   at org.netbeans.modules.php.dbgp.annotations.ToolTipAnnotation.evaluate(ToolTipAnnotation.java:147)
   at org.netbeans.modules.php.dbgp.annotations.ToolTipAnnotation.access$000(ToolTipAnnotation.java:80)
   at org.netbeans.modules.php.dbgp.annotations.ToolTipAnnotation$1.run(ToolTipAnnotation.java:95)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
Comment 1 katsuke 2014-11-04 17:18:55 UTC
Created attachment 150272 [details]
stacktrace
Comment 2 katsuke 2014-11-04 17:20:09 UTC
Extra details, scroll does not seem to be the issue. The exception is only thrown when you hover on text. So it must be related to Tool Tips code.
Comment 3 Exceptions Reporter 2014-12-14 17:25:55 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=213144
Comment 4 junichi11 2015-05-24 06:28:40 UTC
Could someone provide a simple project and exact steps to reproduce it?
I would like to do it.

Thanks.
Comment 5 Jiri Prox 2015-08-04 06:54:21 UTC
Created attachment 155157 [details]
stacktrace

NPE when inspecting history tab of php file
Comment 6 Tomas Mysik 2015-09-04 09:46:08 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/748c5b6ff717
Comment 7 Quality Engineering 2015-09-05 03:03:12 UTC
Integrated into 'main-silver', will be available in build *201509050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/748c5b6ff717
User: Tomas Mysik <tmysik@netbeans.org>
Log: #248401 - NullPointerException at javax.swing.text.JTextComponent.getSelectionStart