Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1204

NullpointerException in org.apache.karaf.features.command.FeatureFinder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.0.0
    • None
    • karaf
    • None
    • Build Environment: OpenJDK 1.6.0_22 (64bit), Maven 3.0.4, OpenSuse 12.1-64bit
      Runtime: same as above

    Description

      The method "updated()" in FeatureFinder throws a NullpointerException during startup.
      This is because ther passed in "Dictionary" is actually null since the configuration with service.pid="org.apache.karaf.features.repos" (as configured in the Blueprint file "features-command.xml") does not seem to exist.

      I suggest to at least add a "if (properties != null) {..." into the updated() method to avoid the NPE.

      Attachments

        1. FeatureFinder.java
          2 kB
          Ulrich Romahn

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              uromahn Ulrich Romahn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: