You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2005/04/08 11:47:23 UTC

svn commit: r160541 - directory/apacheds/trunk/core/src/main/aspects/org/apache/ldap/server/jndi/ProviderNexusAspect.aj

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();