From 7ece8b16967bacfa81d4a2b0f9999e9bca9a32a1 Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Wed, 28 Aug 2024 13:07:42 +0200 Subject: [PATCH] Protect parsing of data types from empty lines --- lib/kafo/data_type_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kafo/data_type_parser.rb b/lib/kafo/data_type_parser.rb index f790c60e..54906ec2 100644 --- a/lib/kafo/data_type_parser.rb +++ b/lib/kafo/data_type_parser.rb @@ -15,7 +15,7 @@ def initialize(manifest) line = line.force_encoding("UTF-8").strip next if line.start_with?('#') - line = line.split(' #').first.strip + line = line.split(' #').first.strip unless line.empty? if line =~ TYPE_DEFINITION lines << type_line_without_newlines type_line_without_newlines = line