Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1651

better error handling in case of missing <if> element in <if><then> pair

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0-beta0
    • 1.3.0-alpha16
    • None
    • None

    Description

      The config file

      <configuration>
       <then/>
      </configuration>

      results in

      Java Exception: java.util.EmptyStackException
       at java.base/java.util.Stack.peek(Stack.java:101)
       at ch.qos.logback.core.model.processor.ModelInterpretationContext.peekModel(ModelInterpretationContext.java:73)
       at ch.qos.logback.core.model.processor.conditional.ThenModelHandler.handle(ThenModelHandler.java:45)
       

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: