Karaf
  1. Karaf
  2. KARAF-722

throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3
    • Component/s: None
    • Labels:
      None

      Description

      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

                 String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
                 int attributeIndexSep = sn.indexOf(';');
            

      we should add a check for sn and throw more meaningful exception if it's NULL but not just the NPE

        Activity

        Freeman Fang created issue -
        Freeman Fang made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Freeman Fang made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.2.3 [ 12316685 ]
        Resolution Fixed [ 1 ]
        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Freeman Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development