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 191310 - [patch attached] NullPointerException at org.netbeans.modules.j2ee.common.EEInjectiontargetQueryImplementation.isInjectionTarget
Summary: [patch attached] NullPointerException at org.netbeans.modules.j2ee.common.EEI...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 13:20 UTC by Tomas Mysik
Modified: 2010-10-26 14:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 173467


Attachments
stacktrace (4.22 KB, text/plain)
2010-10-25 13:20 UTC, Tomas Mysik
Details
proposed patch (1.15 KB, patch)
2010-10-25 14:56 UTC, Tomas Mysik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2010-10-25 13:20:48 UTC
Build: NetBeans IDE 7.0 M2 (Build 201010151251)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
tmysik: ALT + INSERT > Call Web Service Operation




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.common.EEInjectiontargetQueryImplementation.isInjectionTarget(EEInjectiontargetQueryImplementation.java:76)
   at org.netbeans.modules.j2ee.common.queries.api.InjectionTargetQuery.isInjectionTarget(InjectionTargetQuery.java:85)
   at org.netbeans.modules.maven.jaxws.actions.JaxWsCodeGenerator$CompilerTask.run(JaxWsCodeGenerator.java:769)
   at org.netbeans.modules.maven.jaxws.actions.JaxWsCodeGenerator$CompilerTask.run(JaxWsCodeGenerator.java:744)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:483)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154)
Comment 1 Tomas Mysik 2010-10-25 13:20:51 UTC
Created attachment 102612 [details]
stacktrace
Comment 2 Tomas Mysik 2010-10-25 13:25:50 UTC
P2 because there is no work around, AFAIK.

Thanks a lot.
Comment 3 Tomas Mysik 2010-10-25 14:56:00 UTC
Created attachment 102618 [details]
proposed patch
Comment 4 David Konecny 2010-10-25 15:03:13 UTC
Should be reproducible on J2SE maven project.
Comment 5 David Konecny 2010-10-26 11:15:27 UTC
f2eb9d1e9472 (web-main)

Thanks for the patch Tomas.
Comment 6 Tomas Mysik 2010-10-26 14:35:14 UTC
Nothing to thank for, of course.