SLING-4079 - ignore non-installable resources, based on a contribution by Radu Cotescu, thanks!

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1633329 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java b/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
index 382a66f..033b698 100644
--- a/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
+++ b/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
@@ -90,7 +90,8 @@
 
                     final URL url = resourceProvider.getResource(path);
                     if(url == null){
-                    	throw new RuntimeException("Retrieved null resource for path: "+path);
+                        logger.debug("Launchpad ignoring path '{}' due to null URL", path);
+                        continue;
                     }
                     Dictionary<String, Object> dict = null;
                     if ( InstallableResource.TYPE_FILE.equals(resourceType) ) {
@@ -206,4 +207,4 @@
         installer.registerResources("launchpad", (toInstall));
         logger.info("{} resources registered with OsgiInstaller", toInstall.length);
     }
-}
\ No newline at end of file
+}