karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-722) throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null
Date Sun, 10 Jul 2011 01:44:01 GMT
throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null
--------------------------------------------------------------------------------

                 Key: KARAF-722
                 URL: https://issues.apache.org/jira/browse/KARAF-722
             Project: Karaf
          Issue Type: Improvement
    Affects Versions: 2.2.2
            Reporter: Freeman Fang
            Assignee: Freeman Fang


when install feature, if the feature contain some jar isn't the OSGi friendly,  which means
it not has Bundle-SymbolicName OSGi header, then the blow code
      {code}
           String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
           int attributeIndexSep = sn.indexOf(';');
      {code}
we should add a check for sn and throw more meaningful exception if it's NULL but not just
the NPE


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message