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 7.2 Beta (Build 201205031832) VM: Java HotSpot(TM) 64-Bit Server VM, 20.8-b03-424, Java(TM) SE Runtime Environment, 1.6.0_33-b03-424-11M3720 OS: Mac OS X User Comments: theshadow27: Not sure what triggered, refactoring manually Stacktrace: java.lang.NullPointerException: The element parameter cannot be null at org.openide.util.Parameters.notNull(Parameters.java:89) at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:429) at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:388) at org.netbeans.modules.j2ee.ejbverification.rules.source.UseInjectionInsteadOfInstantionRule.useInjectionInsteadOfInstantion(UseInjectionInsteadOfInstantionRule.java:101) at sun.reflect.GeneratedMethodAccessor121.invoke(GeneratedMethodAccessor121.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Created attachment 121309 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=189157
Created attachment 122621 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=189157
10 duplicated in three months => P2 I know that we already passed patch1 nomination cut-off day, but do you think that would possible to nominate in addition this one? The fix is really safe - just the check for NPE. If it wouldn't be possible I would like to put it at least to the patch2. Fixed in web-main #a43e9fdb2453.
Cc'ing also Tomas Danek.
I'm ok with putting this into patch1. Feel free to backport.
(In reply to comment #7) > I'm ok with putting this into patch1. Feel free to backport. Thanks a lot Tomasi. PetrH, could you review that change, please? It just prevents NPE when the element was not found (not resolved class).
(In reply to comment #8) > (In reply to comment #7) > > I'm ok with putting this into patch1. Feel free to backport. > > Thanks a lot Tomasi. > > PetrH, could you review that change, please? It just prevents NPE when the > element was not found (not resolved class). Seems to be safe.
Integrated into 'main-golden', will be available in build *201208290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a43e9fdb2453 User: Martin Fousek <marfous@netbeans.org> Log: #214731 - NullPointerException: The element parameter cannot be null
Could not replicate on original build or patched build. Marking verified per Jiri
(In reply to comment #11) > Could not replicate on original build or patched build. Marking verified per > Jiri Thanks for verification. I'll transplant it tomorrow.
+1 Thanks for your verification!
Transplanted into release72 branch of releases repository: changeset: 237342:1bce136fcb94 branch: release72 description: #214731 - NullPointerException: The element parameter cannot be null (transplanted from a43e9fdb2453ce8523f80299098bc98c388445fd) changeset: 237343:8cc2f203d910 branch: release72 description: Spec. version and long description update for issue #214731
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/1bce136fcb94 User: Martin Fousek <marfous@netbeans.org> Log: #214731 - NullPointerException: The element parameter cannot be null (transplanted from a43e9fdb2453ce8523f80299098bc98c388445fd)
No exact steps to reproduce but changeset looks OK.