From be86b68886eebdfb8ed50aa87d02555e1e04377b Mon Sep 17 00:00:00 2001 From: nadrad Date: Thu, 13 Oct 2022 10:45:40 +0200 Subject: [PATCH] fix the problem with opening empty files --- h-m-m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/h-m-m b/h-m-m index 723ed2c..3d60c21 100755 --- a/h-m-m +++ b/h-m-m @@ -455,6 +455,11 @@ function load_file(&$mm) // won't cause any problems. $new_nodes = list_to_map($lines, 0, 2); + if (empty($new_nodes)) + { + load_empty_map($mm); + return; + } // checking to see how many first-level nodes we have $first_level_nodes = [];