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.
Build: NetBeans IDE Dev (Build 201204160400) VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05 OS: Windows 7 User Comments: sunbiz: Go to Spring bean and searching in the Type name threw this exception Stacktrace: java.lang.NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init>(BeanTypeDescriptor.java:58) at org.netbeans.modules.spring.beans.jumpto.SpringBeansTypeProvider$2.run(SpringBeansTypeProvider.java:206) at org.netbeans.modules.spring.beans.jumpto.SpringBeansTypeProvider$2.run(SpringBeansTypeProvider.java:199) at org.netbeans.modules.spring.beans.model.impl.SpringModelImplementation$1.call(SpringModelImplementation.java:70) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runCallable(AnnotationModelHelper.java:257) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.access$100(AnnotationModelHelper.java:85)
Created attachment 118491 [details] stacktrace
Created attachment 118536 [details] stacktrace
Thanks a lot for reporting! As I was afraid your NPE was most probably related to Spring beans just on the classpath of your project. So there were two ways - omit such beans or find them inside JAR archives. I chosen the more diligent one and let's see what about the performance of this solution, but I think that it should be ok, since it's loaded/initialized just once or by bean's changes. Anyway fixed in web-main #02d15c86c3b4. If I could ask you please re-try it in builds where the fix will be available. Thanks a lot!
Integrated into 'main-golden', will be available in build *201204210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/02d15c86c3b4 User: Martin Fousek <marfous@netbeans.org> Log: #211431 - NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init>
Integrated into 'main-golden', will be available in build *201204240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1393557f92d7 User: Martin Fousek <marfous@netbeans.org> Log: #211431 - NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init> - fixed test