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 242837

Summary: NullPointerException at org.netbeans.modules.java.source.builder.TreeFactory.modifyClassMember
Product: webservices Reporter: lzgrillo <lzgrillo>
Component: RESTAssignee: Milan Kuchtiak <mkuchtiak>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208346
Attachments: stacktrace

Description lzgrillo 2014-03-12 17:37:26 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-1410-on-20140309)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
lzgrillo: Create a Rest service pattern




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.source.builder.TreeFactory.modifyClassMember(TreeFactory.java:921)
   at org.netbeans.modules.java.source.builder.TreeFactory.addClassMember(TreeFactory.java:905)
   at org.netbeans.api.java.source.TreeMaker.addClassMember(TreeMaker.java:1362)
   at org.netbeans.modules.websvc.rest.support.JavaSourceHelper.addMethod(JavaSourceHelper.java:614)
   at org.netbeans.modules.websvc.rest.codegen.GenericResourceGenerator.addGetMethod(GenericResourceGenerator.java:350)
   at org.netbeans.modules.websvc.rest.codegen.GenericResourceGenerator.addMethods(GenericResourceGenerator.java:288)
Comment 1 lzgrillo 2014-03-12 17:37:27 UTC
Created attachment 145978 [details]
stacktrace
Comment 2 Jan Stola 2015-04-23 15:15:01 UTC
I am sorry, I am not able to reproduce this issue and the stack-trace of the exception is not sufficient to track the problem down. I am closing this issue as non-reproducible. Feel free to reopen it if you are still able to reproduce it but do not forget to provide more information then (exact steps to reproduce would be ideal). It also may help to attach the files that were (partially) generated along the way. Thank you in advance.