From b6b4721df77093da0b5e707bc8187943305e1bcd Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 21 Jun 2018 15:12:05 +0300 Subject: [PATCH] Check {data,object}_path for empty value. --- src/core/Core.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Core.vala b/src/core/Core.vala index d607a1e..7858b68 100644 --- a/src/core/Core.vala +++ b/src/core/Core.vala @@ -90,10 +90,10 @@ namespace LAview.Core { load_data_modules (AppDirs.data_plugins_dir); load_object_modules (AppDirs.object_plugins_dir); - if (File.new_for_path (data_path).query_exists()) + if (data_path != "" && File.new_for_path (data_path).query_exists()) load_data_modules (data_path); - if (File.new_for_path (object_path).query_exists()) + if (object_path != "" && File.new_for_path (object_path).query_exists()) load_object_modules (object_path); load_templates_list ();