Uploaded image for project: 'Pax Exam'
  1. Pax Exam
  2. PAXEXAM-292

Using @inject annotation on ConfigurationAdmin produces a nullpointer exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0.M1, 2.4.0.RC1, 2.4.0
    • Fix Version/s: 2.4.0.RC1, 2.5.0
    • Component/s: Core
    • Labels:
      None

      Description

      If you inject a config admin in your unit test and execute getConfiguration("someValidKeyHere"); afterwards you end up in a nullpointer exception because the bundle in the config admin is null.

        Attachments

          Activity

            People

            • Assignee:
              hwellmann Harald Wellmann
              Reporter:
              anpieber Andreas Pieber
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: