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 234017 - NullPointerException at org.netbeans.modules.web.beans.CdiUtil.isCdi11OrLater
Summary: NullPointerException at org.netbeans.modules.web.beans.CdiUtil.isCdi11OrLater
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 13:08 UTC by abien
Modified: 2013-08-07 02:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 202862


Attachments
stacktrace (5.08 KB, text/plain)
2013-08-06 13:08 UTC, abien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abien 2013-08-06 13:08:28 UTC
Build: NetBeans IDE Dev (Build 201308032300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b12
OS: Mac OS X

User Comments:
abien: Happened during opening a JavaEE project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.beans.CdiUtil.isCdi11OrLater(CdiUtil.java:217)
   at org.netbeans.modules.web.beans.impl.model.BeansModelImpl.getBeanArchiveType(BeansModelImpl.java:207)
   at org.netbeans.modules.web.beans.impl.model.ArchiveTypeBindingTypeFilter.filter(ArchiveTypeBindingTypeFilter.java:76)
   at org.netbeans.modules.web.beans.impl.model.FieldInjectionPointLogic.filterBindingByArchiveType(FieldInjectionPointLogic.java:613)
   at org.netbeans.modules.web.beans.impl.model.FieldInjectionPointLogic.doFindVariableInjectable(FieldInjectionPointLogic.java:217)
   at org.netbeans.modules.web.beans.impl.model.FieldInjectionPointLogic.findVariableInjectable(FieldInjectionPointLogic.java:137)
Comment 1 abien 2013-08-06 13:08:29 UTC
Created attachment 138355 [details]
stacktrace
Comment 2 Sergey Petrov 2013-08-06 13:17:24 UTC
can you provide beans.xml content?
Comment 3 Sergey Petrov 2013-08-06 15:00:34 UTC
anyway simple null check may be good here
http://hg.netbeans.org/web-main/rev/8011c80be10b
Comment 4 Quality Engineering 2013-08-07 02:25:19 UTC
Integrated into 'main-silver', will be available in build *201308062300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8011c80be10b
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #234017 null check