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

        

Reply via email to