Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 196927 Details for
Bug 347698
An NPE generating a Client JAR for an EJB project without Enterprise Beans
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed Patch (null check)
bug347698.patch (text/plain), 1.64 KB, created by
Roberto Sanchez Herrera
on 2011-05-30 17:04:53 EDT
(
hide
)
Description:
Proposed Patch (null check)
Filename:
MIME Type:
Creator:
Roberto Sanchez Herrera
Created:
2011-05-30 17:04:53 EDT
Size:
1.64 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee.ejb >Index: ejbarchive/org/eclipse/jst/j2ee/internal/ejb/archiveoperations/EJBClientJarCreationHelper.java >=================================================================== >RCS file: /cvsroot/webtools/ejbtools/plugins/org.eclipse.jst.j2ee.ejb/ejbarchive/org/eclipse/jst/j2ee/internal/ejb/archiveoperations/EJBClientJarCreationHelper.java,v >retrieving revision 1.9.2.1 >diff -u -r1.9.2.1 EJBClientJarCreationHelper.java >--- ejbarchive/org/eclipse/jst/j2ee/internal/ejb/archiveoperations/EJBClientJarCreationHelper.java 31 Jan 2011 08:39:14 -0000 1.9.2.1 >+++ ejbarchive/org/eclipse/jst/j2ee/internal/ejb/archiveoperations/EJBClientJarCreationHelper.java 30 May 2011 21:03:38 -0000 >@@ -99,15 +99,17 @@ > > if (ejbJar != null) { > EnterpriseBeans enterpriseBeans = ejbJar.getEnterpriseBeans(); >- List<SessionBean> sessionBeans = enterpriseBeans.getSessionBeans(); >- for (SessionBean sessionBean : sessionBeans) { >- computeJavaTypes(sessionBean); >+ if (enterpriseBeans != null){ >+ List<SessionBean> sessionBeans = enterpriseBeans.getSessionBeans(); >+ for (SessionBean sessionBean : sessionBeans) { >+ computeJavaTypes(sessionBean); >+ } >+ >+ List<EntityBean> entityBeans = enterpriseBeans.getEntityBeans(); >+ for (EntityBean entityBean : entityBeans) { >+ computeJavaTypes(entityBean); >+ } > } >- >- List<EntityBean> entityBeans = enterpriseBeans.getEntityBeans(); >- for (EntityBean entityBean : entityBeans) { >- computeJavaTypes(entityBean); >- } > } > computeRMICJavaTypes(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
ccc
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 347698
: 196927