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

NPE when logging with Felix Log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • log-1.2.0
    • None
    • Log Service
    • None

    Description

      Calling the logger like this:

      log.info("Test", new Object[0]);

      causes a NPE:java.lang.NullPointerException
          at org.apache.felix.log.LoggerImpl.format(LoggerImpl.java:335)
          at org.apache.felix.log.LoggerImpl.info(LoggerImpl.java:164)

      While you wouldn't explicitly write code like this, wrappers such as org.eclipse.jetty.util.log.Slf4jLog may introduce a "mapping" of info(msg) to info(msg, Object[0])

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              drmlipp Michael Lipp
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: