Re: NPE on "Fix" action

Petr Kuzel <[email protected]> Mon, 08 Dec 2003 09:56:45 +0100
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems
Message-ID <[email protected]>
Andrew Gaydenko wrote:

> The NPE shown below takes place when I try to "Fix" unused
> imports found by PMD.
> 
> Probably, the tasklist module is in interim state, so I'm not
> sure bug reporting is needed.

Sure, bugs in mails are not traced and module then
seems perfect from bug statistics point of view
(primary quality view).

> ==========================
> java.lang.NullPointerException
>org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(SuggestionNode.java:161)
>org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(SuggestionNode.java:161)
>org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(SuggestionNode.java:161)

You have disabled assertions. Use -J-ea option to catch
these issues earlier (here by one line :-) in dev builds.

  Cc.