Check for null resource before parsing
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 13 Oct 2003 03:40:05 +0000 (03:40 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 13 Oct 2003 03:40:05 +0000 (03:40 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@773 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 14abfde..a4b5a7e 100755 (executable)
@@ -255,7 +255,8 @@ public class AAServlet extends HttpServlet {
 
                        URL resource = null;
                        try {
-                               resource = new URL(saml.getResource());
+                               if (saml.getResource() != null)
+                                       resource = new URL(saml.getResource());
                        } catch (MalformedURLException mue) {
                                log.error(
                                        "Request contained an improperly formatted resource identifier.  Attempting to "