fix error if logger attribute omitted
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 9 Jun 2005 19:25:35 +0000 (19:25 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 9 Jun 2005 19:25:35 +0000 (19:25 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1610 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/serviceprovider/ServiceProviderConfig.java

index fa85875..7f83ed4 100644 (file)
@@ -433,7 +433,9 @@ public class ServiceProviderConfig {
                
                try {
                        String loggerUrl = config.getLogger();
                
                try {
                        String loggerUrl = config.getLogger();
-                       PropertyConfigurator.configure(new URL(loggerUrl));
+            if (loggerUrl!=null) {
+                PropertyConfigurator.configure(new URL(loggerUrl));
+            }
                } catch (Exception e) {
                        log.error("Cannot process logger attribute of SP configuration file.",e);
                }
                } catch (Exception e) {
                        log.error("Cannot process logger attribute of SP configuration file.",e);
                }