directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r160541 - directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj
Date Fri, 08 Apr 2005 09:47:23 GMT
Author: trustin
Date: Fri Apr  8 02:47:21 2005
New Revision: 160541

URL: http://svn.apache.org/viewcvs?view=rev&rev=160541
Log:
Suppressed ProviderNexusAspect to throw NullPointerException in case user wants to create
Invocations outside of the server context (e.g. Unit testing)


Modified:
    directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj

Modified: directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj?view=diff&r1=160540&r2=160541
==============================================================================
--- directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj
(original)
+++ directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj
Fri Apr  8 02:47:21 2005
@@ -120,9 +120,9 @@
     {
         Stack stack = ( Stack ) JndiProvider.s_contextStacks.get();
         
-        if ( null == stack )
+        if ( stack == null )
         {
-            throw new NullPointerException( "Thread had null stack" );
+            return null;
         }
         
         return ( Stack ) stack.clone();



Mime
View raw message