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

Summary: [patch attached] NullPointerException at org.netbeans.modules.j2ee.common.EEInjectiontargetQueryImplementation.isInjectionTarget
Product: javaee Reporter: Tomas Mysik <tmysik>
Component: CodeAssignee: issues@javaee <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 173467
Attachments: stacktrace
proposed patch

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.