BundleUpdateTask should check for null InputStream
--------------------------------------------------

                 Key: SLING-1346
                 URL: https://issues.apache.org/jira/browse/SLING-1346
             Project: Sling
          Issue Type: Bug
          Components: Installer
            Reporter: Bertrand Delacretaz
            Assignee: Bertrand Delacretaz
            Priority: Minor


BundleUpdateTask currently does

  b.update(resource.getInputStream(ctx.getBundleContext()));

if for any reason resource.getInputStream(...) returns null, the Bundle object 
will try to update itself from its location.

As the location starts with jcrinstall:, the framework complains with a 
"java.net.MalformedURLException: unknown protocol: jcrinstall" if that happens.

To avoid this, we need to check if the input stream is null, and log a warning 
instead of trying to update the bundle if that happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to