Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4898

NPE in org.apache.felix.ipojo.handlers.configuration.ConfigurationHandler.notifyListeners

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: ipojo-runtime-1.12.1
    • Fix Version/s: None
    • Component/s: iPOJO
    • Labels:
      None

      Description

      this snippet in notifyListeners(Map<String, Object> map)
      ...
      for (String k : map.keySet()) {
      if (! map.get(k).equals(m_lastConfiguration.get(k)))

      { // Difference found, break; diff = true; break; }

      }
      ...
      if map contains null value, a NPE will be thrown.
      For example, fileinstall injects a config file without some property, a null pointer will cause this exception.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              armroe armroe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: