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 225251 - [73cat] NullPointerException at org.netbeans.modules.html.navigator.HtmlSourceTask.run
Summary: [73cat] NullPointerException at org.netbeans.modules.html.navigator.HtmlSourc...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Navigator (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-23 17:02 UTC by misterm
Modified: 2013-01-26 03:04 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197918


Attachments
stacktrace (827 bytes, text/plain)
2013-01-23 17:02 UTC, misterm
Details
stacktrace (827 bytes, text/plain)
2013-01-23 17:40 UTC, misterm
Details
stacktrace (827 bytes, text/plain)
2013-01-24 13:31 UTC, Maksim Khramov
Details
stacktrace (827 bytes, text/plain)
2013-01-24 17:22 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-01-23 17:02:20 UTC
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)
Comment 1 misterm 2013-01-23 17:02:22 UTC
Created attachment 130548 [details]
stacktrace
Comment 2 misterm 2013-01-23 17:40:42 UTC
Created attachment 130550 [details]
stacktrace
Comment 3 Maksim Khramov 2013-01-24 13:31:42 UTC
Created attachment 130585 [details]
stacktrace
Comment 4 misterm 2013-01-24 17:22:43 UTC
Created attachment 130600 [details]
stacktrace
Comment 5 Exceptions Reporter 2013-01-24 17:22:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=197918
Comment 6 misterm 2013-01-24 17:54:51 UTC
It occurs every single time a xhtml file is selected, raising priority.
Comment 7 Vladimir Riha 2013-01-25 07:51:34 UTC
probably belongs to Navigator, reassigning
Comment 8 Vladimir Riha 2013-01-25 07:55:24 UTC
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)
Comment 9 Vladimir Riha 2013-01-25 08:24:23 UTC
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
Comment 10 Marian Mirilovic 2013-01-25 08:26:30 UTC
Is this really reported against NB 7.3 ?
Comment 11 Vladimir Riha 2013-01-25 08:30:56 UTC
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...
Comment 12 Jan Becicka 2013-01-25 08:31:45 UTC
NPE is thrown from ParserResultTask implementation which gets null SchedulerEvent.
Comment 13 Vladimir Riha 2013-01-25 08:36:51 UTC
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
Comment 14 Marek Fukala 2013-01-25 08:38:13 UTC
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.
Comment 15 Marek Fukala 2013-01-25 08:39:58 UTC
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...
Comment 16 Tomas Zezula 2013-01-25 08:41:12 UTC
No changes.
Comment 17 Marek Fukala 2013-01-25 09:03:57 UTC
Thanks Tome. Then as I'm not aware of any changes on the html editor side, cannot it be something in CSL? Svato?
Comment 18 Jan Becicka 2013-01-25 09:06:15 UTC
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
Comment 19 Jan Becicka 2013-01-25 09:07:16 UTC
Now the event has a null check. But still don't know why null is passed there.
Comment 20 Marek Fukala 2013-01-25 09:51:52 UTC
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...
Comment 21 Svata Dedic 2013-01-25 10:11:45 UTC
No changes in CSL (relevant parts) for ages. I've checked changelog back to 10th December, and no change seem relevant; sorry.
Comment 22 Tomas Zezula 2013-01-25 13:13:34 UTC
Are there any steps to reproduce?
Comment 23 misterm 2013-01-25 13:14:55 UTC
Before # 225258 being fixed, just a matter of selecting a .xhtml in the Project tab.
Comment 24 Quality Engineering 2013-01-26 03:04:07 UTC
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