Werk #16633: Logfile pattern analyzer: Fix crash for first rule without regex pattern

Component User interface
Title Logfile pattern analyzer: Fix crash for first rule without regex pattern
Date Apr 17, 2024
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.2.0p26 2.3.0b6 2.4.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The "Logfile pattern analyzer" page crashed when the first "Logfile pattern" rule in place did not hold a regex pattern and a later rule did hold a regex pattern. The rendering of the table of rules would crash with

Internal error: list index out of range

This is fixed and all rules are rendered as expected.

To the list of all Werks