From cd2117de3866405fba2d68f3ad41a6a1d18b365c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 19 Oct 2024 12:23:43 -0400 Subject: [PATCH] Fix RombaSharp build --- RombaSharp/Features/Diffdat.cs | 4 ++-- RombaSharp/Features/Dir2Dat.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RombaSharp/Features/Diffdat.cs b/RombaSharp/Features/Diffdat.cs index e3136df9..36c25fea 100644 --- a/RombaSharp/Features/Diffdat.cs +++ b/RombaSharp/Features/Diffdat.cs @@ -47,13 +47,13 @@ in -old DAT file. Ignores those entries in -old that are not in -new."; outdat = outdat.Ensure(create: true); // Check that all required files exist - if (!File.Exists(olddat)) + if (olddat == null || !File.Exists(olddat)) { logger.Error($"File '{olddat}' does not exist!"); return false; } - if (!File.Exists(newdat)) + if (newdat == null || !File.Exists(newdat)) { logger.Error($"File '{newdat}' does not exist!"); return false; diff --git a/RombaSharp/Features/Dir2Dat.cs b/RombaSharp/Features/Dir2Dat.cs index 935a864c..b5d2c9d7 100644 --- a/RombaSharp/Features/Dir2Dat.cs +++ b/RombaSharp/Features/Dir2Dat.cs @@ -46,7 +46,7 @@ namespace RombaSharp.Features outdat = outdat.Ensure(create: true); // Check that all required directories exist - if (!Directory.Exists(source)) + if (source == null || !Directory.Exists(source)) { logger.Error($"File '{source}' does not exist!"); return false;