You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by mr...@apache.org on 2016/08/01 16:53:49 UTC

[14/50] [abbrv] usergrid git commit: removed unnecessary NPE check.. adding it in the methods call it.

removed unnecessary NPE check.. adding it in the methods call it.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/6a790a8e
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/6a790a8e
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/6a790a8e

Branch: refs/heads/master
Commit: 6a790a8ef44a0d64eb4833b1cecb10b68032f8b4
Parents: 897d373
Author: Ayesha Dastagiri <ay...@gmail.com>
Authored: Fri Jul 8 11:38:46 2016 -0700
Committer: Ayesha Dastagiri <ay...@gmail.com>
Committed: Fri Jul 8 11:38:46 2016 -0700

----------------------------------------------------------------------
 .../usergrid/security/tokens/cassandra/TokenServiceImpl.java    | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/6a790a8e/stack/services/src/main/java/org/apache/usergrid/security/tokens/cassandra/TokenServiceImpl.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/security/tokens/cassandra/TokenServiceImpl.java b/stack/services/src/main/java/org/apache/usergrid/security/tokens/cassandra/TokenServiceImpl.java
index 2234257..62d454a 100644
--- a/stack/services/src/main/java/org/apache/usergrid/security/tokens/cassandra/TokenServiceImpl.java
+++ b/stack/services/src/main/java/org/apache/usergrid/security/tokens/cassandra/TokenServiceImpl.java
@@ -799,12 +799,7 @@ public class TokenServiceImpl implements TokenService {
     }
 
     private String getExternalSSOProvider(){
-        try {
             return properties.getProperty(USERGRID_EXTERNAL_PROVIDER);
-        }
-        catch(NullPointerException e ){
-            throw new IllegalArgumentException("External SSO provider is enabled but the provider name is empty");
-        }
     }
 
     /**