Werk #15620: check_http: Don't Crash with TypeError

Component Checks & agents
Title check_http: Don't Crash with TypeError
Date May 31, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This werk fixes a regression introduced in 2.2.0.

If a user configured the option IP address family > Primary address family via the rule Check HTTP service, then the check would crash with

TypeError: 'NoneType' object is not subscriptable

To the list of all Werks