[SIDP-472] protect against metadata oddness
authorrdw <rdw@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Mar 2011 17:31:32 +0000 (17:31 +0000)
committerrdw <rdw@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Mar 2011 17:31:32 +0000 (17:31 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2999 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/ui/ServiceTagSupport.java

index dc17aed..f0d9a5a 100644 (file)
@@ -149,9 +149,11 @@ public class ServiceTagSupport extends BodyTagSupport{
 \r
         for (RoleDescriptor role:spEntity.getRoleDescriptors(SPSSODescriptor.DEFAULT_ELEMENT_NAME)) {\r
             exts = role.getExtensions();\r
-            for (XMLObject object:exts.getOrderedChildren()) {\r
-                if (object instanceof UIInfo) {\r
-                    return (UIInfo) object;\r
+            if (exts != null) {\r
+                for (XMLObject object:exts.getOrderedChildren()) {\r
+                    if (object instanceof UIInfo) {\r
+                        return (UIInfo) object;\r
+                    }\r
                 }\r
             }\r
         }\r