Fixed NullPointerException on incorrect or missing attribute.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 3 Mar 2003 18:34:35 +0000 (18:34 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 3 Mar 2003 18:34:35 +0000 (18:34 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@526 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAResponder.java

index c5182b6..4d3dfc2 100755 (executable)
@@ -126,6 +126,9 @@ public class AAResponder {
                                                         arpAttribute.getName().substring(arpAttribute.getName().lastIndexOf(":") + 1)});
                                Attribute dAttr =
                                        attrs.get(arpAttribute.getName().substring(arpAttribute.getName().lastIndexOf(":") + 1));
+                               if (dAttr == null) {
+                                       continue;       
+                               }
                                NamingEnumeration directoryValuesEnum = dAttr.getAll();
                                List directoryValues = new ArrayList();
                                while (directoryValuesEnum.hasMoreElements()) {