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.
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)
Created attachment 150272 [details] stacktrace
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.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213144
Could someone provide a simple project and exact steps to reproduce it? I would like to do it. Thanks.
Created attachment 155157 [details] stacktrace NPE when inspecting history tab of php file
Fixed. http://hg.netbeans.org/web-main/rev/748c5b6ff717
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