[java-identity-provider] branch master updated: Check for null role, which this action technically allows.

Scott Cantor cantor.2 at osu.edu
Mon Dec 10 14:43:11 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=cce3f4a400a0c92bba6747f45f96f0d6438ba5e9

The following commit(s) were added to refs/heads/master by this push:
       new  cce3f4a   Check for null role, which this action technically allows.
cce3f4a is described below

commit cce3f4a400a0c92bba6747f45f96f0d6438ba5e9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Dec 10 14:43:09 2018 -0500

    Check for null role, which this action technically allows.
---
 .../java/net/shibboleth/idp/ui/impl/SetRPUIInformation.java  | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/idp-ui/src/main/java/net/shibboleth/idp/ui/impl/SetRPUIInformation.java b/idp-ui/src/main/java/net/shibboleth/idp/ui/impl/SetRPUIInformation.java
index a13dcea..384aaf0 100644
--- a/idp-ui/src/main/java/net/shibboleth/idp/ui/impl/SetRPUIInformation.java
+++ b/idp-ui/src/main/java/net/shibboleth/idp/ui/impl/SetRPUIInformation.java
@@ -169,11 +169,13 @@ public class SetRPUIInformation extends AbstractProfileAction {
      * @return the value or null if there is none.
      */
     @Nullable protected UIInfo getRPUInfo() {
-        final Extensions exts = spSSODescriptor.getExtensions();
-        if (exts != null) {
-            for (final XMLObject object : exts.getOrderedChildren()) {
-                if (object instanceof UIInfo) {
-                    return (UIInfo) object;
+        if (spSSODescriptor != null) {
+            final Extensions exts = spSSODescriptor.getExtensions();
+            if (exts != null) {
+                for (final XMLObject object : exts.getOrderedChildren()) {
+                    if (object instanceof UIInfo) {
+                        return (UIInfo) object;
+                    }
                 }
             }
         }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list