felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-1453) BundleArchive.createRevisionFromLocation may throw NullPointerException
Date Sat, 21 Aug 2010 22:11:16 GMT

     [ https://issues.apache.org/jira/browse/FELIX-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Felix Meschberger resolved FELIX-1453.
--------------------------------------

    Resolution: Cannot Reproduce

Ok. This is probably caused by an erroneous system state and thus makes probably not much
sense to further follow up on. Resolving as proposed.

> BundleArchive.createRevisionFromLocation may throw NullPointerException
> -----------------------------------------------------------------------
>
>                 Key: FELIX-1453
>                 URL: https://issues.apache.org/jira/browse/FELIX-1453
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-1.8.1
>            Reporter: Felix Meschberger
>
> When BundleArchive.createRevisionFromLocation is called with the location being null,
a NullPointerException is thrown on line 995 (Rev. 801082).
> The fix obviously seems to be to check for null on this line and actually pass it through
like this:
> Index: src/main/java/org/apache/felix/framework/cache/BundleArchive.java
> ===================================================================
> --- src/main/java/org/apache/felix/framework/cache/BundleArchive.java	(Revision 801082)
> +++ src/main/java/org/apache/felix/framework/cache/BundleArchive.java	(Arbeitskopie)
> @@ -992,7 +992,7 @@
>                          location, true);
>                  }
>              }
> -            else if (location.startsWith(INPUTSTREAM_PROTOCOL))
> +            else if (location == null || location.startsWith(INPUTSTREAM_PROTOCOL))
>              {
>                  // Assume all input streams point to JAR files.
>                  result = new JarRevision(m_logger, m_configMap, revisionRootDir,

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


Mime
View raw message