You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2013/07/26 11:57:24 UTC

svn commit: r1507245 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/SecurityFactory.scala

Author: chirino
Date: Fri Jul 26 09:57:23 2013
New Revision: 1507245

URL: http://svn.apache.org/r1507245
Log:
Fixing bug that can cause NPE.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/SecurityFactory.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/SecurityFactory.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/SecurityFactory.scala?rev=1507245&r1=1507244&r2=1507245&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/SecurityFactory.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/SecurityFactory.scala Fri Jul 26 09:57:23 2013
@@ -55,7 +55,7 @@ object DefaultSecurityFactory extends Se
       // use the broker's settings..
       host.authenticator = broker.authenticator
     }
-    if( broker.authenticator !=null ) {
+    if( host.authenticator !=null ) {
       host.authorizer = Authorizer(host)
     } else {
       host.authorizer = Authorizer()