From 6d997e4ffaac864137fbde74bb5f02516608d275 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 17 Aug 2017 17:18:52 -1000 Subject: [PATCH] NULL path bug fix --- hecl/lib/Blender/BlenderConnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hecl/lib/Blender/BlenderConnection.cpp b/hecl/lib/Blender/BlenderConnection.cpp index 5eab6c477..0320f083a 100644 --- a/hecl/lib/Blender/BlenderConnection.cpp +++ b/hecl/lib/Blender/BlenderConnection.cpp @@ -234,6 +234,8 @@ static std::atomic_bool BlenderFirstInit(false); static bool RegFileExists(const hecl::SystemChar* path) { + if (!path) + return false; hecl::Sstat theStat; return !hecl::Stat(path, &theStat) && S_ISREG(theStat.st_mode); }