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 34480 - NPE when using tasklist
Summary: NPE when using tasklist
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-06-19 09:22 UTC by maartenc
Modified: 2003-12-11 14:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (102.87 KB, text/plain)
2003-06-20 08:33 UTC, maartenc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maartenc 2003-06-19 09:22:23 UTC
Hi,

I've downloaded and installed the tasklist found on the 
tasklist module webpage (not the one from auto-update) and 
I get the exception below at regular basis. I'm not doing 
anything special: just editing my sources while the 
tasklist window is open...

I'm using NetBeans 3.5 final

regards,
Maarten Coene

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at 
org.netbeans.modules.tasklist.docscan.SourceScanner.scanAll
(SourceScanner.java:414)
	at 
org.netbeans.modules.tasklist.docscan.SourceScanner.scan
(SourceScanner.java:204)
	at 
org.netbeans.modules.tasklist.docscan.SourceTaskProvider.sc
an(SourceTaskProvider.java:115)
	at 
org.netbeans.modules.tasklist.docscan.SourceTaskProvider.re
scan(SourceTaskProvider.java:89)
	at 
org.netbeans.modules.tasklist.suggestions.SuggestionManager
Impl$2.run(SuggestionManagerImpl.java:1659)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:328)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:670)
Comment 1 maartenc 2003-06-19 09:25:45 UTC
It's very annoying, because it seems to me that when this 
happens, Tasklist doesn't work anymore (nothing shows up 
anymore in the suggestion list) until I restart NetBeans.
Comment 2 Torbjorn Norbye 2003-06-19 18:41:37 UTC
Can you tell me exactly which versions of the modules you're using? I
was guessing "3.5 stable", except the line numbers in your stack
traces don't match up. 

To tell, send your ide.log file (it's in your user directory's system/
directory. If you're not sure where the user directory is, go to the
About item in the Help menu and select the Details tab in the
resulting dialog.)

This looks a lot like a bug a fixed a while ago, but since it was due
to a race condition, there may be other race conditions remaining in
the code which are causing what you're seeing.
Comment 3 maartenc 2003-06-20 08:33:07 UTC
Created attachment 10749 [details]
ide.log
Comment 4 maartenc 2003-06-20 08:33:33 UTC
Here is my ide.log.
The tasklist exception is at the bottom of the file
Comment 5 _ pkuzel 2003-11-06 09:26:31 UTC
I do not get the exception symptom. But I randomly get "Tasklist
doesn't work anymore (nothing shows up in the suggestion list) until I
restart NetBeans.".
Comment 6 _ pkuzel 2003-11-08 21:20:10 UTC
Document race condition eliminated