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 20130117-1c2fba4f4903) VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11 OS: Windows 7 Stacktrace: java.lang.NullPointerException at org.netbeans.modules.html.navigator.HtmlSourceTask.run(HtmlSourceTask.java:89) at org.netbeans.modules.html.navigator.HtmlSourceTask.run(HtmlSourceTask.java:62) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:737) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
Created attachment 130548 [details] stacktrace
Created attachment 130550 [details] stacktrace
Created attachment 130585 [details] stacktrace
Created attachment 130600 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=197918
It occurs every single time a xhtml file is selected, raising priority.
probably belongs to Navigator, reassigning
What do you mean by selected? Could you please add more steps to reproduce or sample file? I tried some default XHTML file and focusing it in Projects window did not reproduced this exception. Thanks Product Version: NetBeans IDE Dev (Build web-main-9744-on-20130124) Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Reproduced in NetBeans IDE Dev (Build web-main-9749-on-20130125) by simple opening XHTML file from projects window. I can't reproduce it in RC1
Is this really reported against NB 7.3 ?
I'm not sure why it was reported as 7.3. Unfortunately it happened to me twice in the Dev build and I can't reproduce it ever since...
NPE is thrown from ParserResultTask implementation which gets null SchedulerEvent.
For further reproducing: easier to reproduce when all files in editor are closed and one single clicks on xhtml file in Projects, after a second NPE is thrown
It is very likely caused by the same changes which caused issue 225228. BTW in most of my source tasks I have test for the event to be null as this happens (or at least used to happen) in the past quite often.
Tomasi, have you done some changes in the parsing.api recently (before Jan 17th?) which could cause this issue and 225228 as well? As both issues happens on the xhtml files there might be something wrong on the editor side which I'm not aware of...
No changes.
Thanks Tome. Then as I'm not aware of any changes on the html editor side, cannot it be something in CSL? Svato?
changeset: 244452:e941957dd3ac tag: tip user: Jan Becicka <jbecicka@netbeans.org> date: Fri Jan 25 10:02:12 2013 +0100 summary: Issue #225251 - [73cat] NullPointerException at org.netbeans.modules.html.navigator.HtmlSourceTask.run
Now the event has a null check. But still don't know why null is passed there.
Thanks Honzo. I wanted to debug it bit to figure out what's wrong, but if the task is called properly and only sometimes it gets the null event I think we can keep the status quo. Maybe Svata will know something...
No changes in CSL (relevant parts) for ages. I've checked changelog back to 10th December, and no change seem relevant; sorry.
Are there any steps to reproduce?
Before # 225258 being fixed, just a matter of selecting a .xhtml in the Project tab.
Integrated into 'main-golden', will be available in build *201301260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e941957dd3ac User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #225251 - [73cat] NullPointerException at org.netbeans.modules.html.navigator.HtmlSourceTask.run