[jboss-cvs] JBossAS SVN: r58306 - trunk/server/src/main/org/jboss/ejb
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 13 15:50:37 EST 2006
Author: anil.saldhana at jboss.com
Date: 2006-11-13 15:50:36 -0500 (Mon, 13 Nov 2006)
New Revision: 58306
Modified:
trunk/server/src/main/org/jboss/ejb/EjbUtil.java
Log:
deployment ctx should not be null
Modified: trunk/server/src/main/org/jboss/ejb/EjbUtil.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/EjbUtil.java 2006-11-13 19:14:42 UTC (rev 58305)
+++ trunk/server/src/main/org/jboss/ejb/EjbUtil.java 2006-11-13 20:50:36 UTC (rev 58306)
@@ -716,14 +716,16 @@
private static String resolveAbsoluteLink(DeploymentContext ctx, String link, boolean isLocal)
{
+ if(ctx == null)
+ throw new IllegalArgumentException("deployment context passed is null");
+
if (log.isTraceEnabled())
{
log.trace("Resolving absolute link, ctx: " + ctx);
}
String ejbName = null;
-
- // Search current DeploymentInfo
+
ApplicationMetaData appMD = ctx.getTransientAttachments().getAttachment(ApplicationMetaData.class);
if (appMD != null)
{
More information about the jboss-cvs-commits
mailing list