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 202198 - NullPointerException on Tasks window
Summary: NullPointerException on Tasks window
Status: RESOLVED DUPLICATE of bug 201924
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 20:09 UTC by mienamoo
Modified: 2011-09-16 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2011-09-15 20:09:59 UTC
NetBeans dev build 201109090600
JDK 7 build 147

Steps to reproduce:

1. Create a NetBeans platform module with a TopComponent (Window) and open the TopComponent.
2. Open the Tasks window.
3. Set the filter to "Default filter".
4. Click the "Show tasks for all opened projects" button if not yet in that mode.
5. Set the filter to "Show all".
6. Click the "Show tasks for currently edited file only" button.

A java.lang.NullPointerException occurs at org.netbeans.modules.java.editor.whitelist.WhiteListTaskProvider$4.run(WhiteListTaskProvider.java:321).

Another way to produce the behaviour is to first click "Show tasks for currently edited file only" and then changing the filter to "Show all" (i.e. swap steps 5 and 6 above).
Comment 1 Tomas Zezula 2011-09-16 13:17:22 UTC

*** This bug has been marked as a duplicate of bug 201924 ***
Comment 2 mienamoo 2011-09-16 13:58:26 UTC
I can confirm that this issue is fixed in build 201109141017. So indeed, the fix for bug #201924 has fixed this way of recreating the NullPointerException too. :)