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.
Summary: | NullPointerException: The fo parameter cannot be null | ||
---|---|---|---|
Product: | profiler | Reporter: | David Konecny <dkonecny> |
Component: | Ide | Assignee: | issues@profiler <issues> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 175249 |
Attachments: | stacktrace |
Description
David Konecny
2010-12-22 03:38:26 UTC
Created attachment 104380 [details]
stacktrace
Can you provide steps how to reproduce it? Thanks. Sorry, here they are: I have EJB project and Web Project open in the IDE. I open a test from EJB project in editor and Profile -> Profile Other -> Profile MyTest.java -> Part of application -> Define -> Add From project. Now you should see EJB View and EJB project; tick the project and tick Show All Projects -> exception. And you can see that EJB Project was removed from the list and replaced with Web project and selected view is "Web Applications View". HTH. Couldn't reproduce it on my EJB and Web apps. Probably depends on a particular configuration. However, the main reason seems to be the fact that JavaEE infrastructure happily provides "null" values as deployment descriptors where asked for them through API. Adding a small sanity check not to accept those null values in the profiler code - http://hg.netbeans.org/profiler-main/rev/2af64bbb1481 Integrated into 'main-golden', will be available in build *201101090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2af64bbb1481 User: Jaroslav Bachorik <yardus@netbeans.org> Log: #193718: Do not try to process "null" deployment descriptors returned by the JavaEE infrastructure Tested with your fox and it works fine now. Thanks. Not sure about nulls - it is valid from EE 6 to not have deployment descriptor files (and use annotations instead). |