Skip to content

Commit

Permalink
add null check to ignorePrevChange
Browse files Browse the repository at this point in the history
This fixes a crash when trying to make changes to CDB in a brand new project
  • Loading branch information
9Morello authored Feb 25, 2024
1 parent 189d969 commit 2267dfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hide/tools/FileWatcher.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -230,4 +232,4 @@ class FileWatcher {
}


}
}

0 comments on commit 2267dfe

Please sign in to comment.