Skip to content

Commit 0aab695

Browse files
committed
fix undefined value when stripping errors
1 parent c8cf973 commit 0aab695

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Thruk/Utils/Log.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ sub _strip_line {
167167
}
168168

169169
# ex.: 400: Failed validation of service as type service (argument 0) at /src/thruk/lib/Monitoring/Livestatus.pm line 1568, <GEN7> line 1.
170-
if($lines[0] =~ s/$re//gmx) {
170+
if(defined $lines[0] && $lines[0] =~ s/$re//gmx) {
171171
return($lines[0]);
172172
}
173173

0 commit comments

Comments
 (0)