From 2267dfe61ee1b908f3824cf7a9e29beeee107284 Mon Sep 17 00:00:00 2001 From: 9Morello Date: Sun, 25 Feb 2024 20:31:51 -0300 Subject: [PATCH] add null check to ignorePrevChange This fixes a crash when trying to make changes to CDB in a brand new project --- hide/tools/FileWatcher.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hide/tools/FileWatcher.hx b/hide/tools/FileWatcher.hx index 5e09cddbf..53caea175 100644 --- a/hide/tools/FileWatcher.hx +++ b/hide/tools/FileWatcher.hx @@ -57,7 +57,9 @@ class FileWatcher { } public function ignorePrevChange( f : FileWatchEvent ) { - f.ignoreCheck = getSignature(f.path); + if (f != null) { + f.ignoreCheck = getSignature(f.path); + } } function getSignature( path : String ) : String { @@ -230,4 +232,4 @@ class FileWatcher { } -} \ No newline at end of file +}