From 33dc1dd8939ce1fe2161da4e8c61a35a3c6252a7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 26 Jan 2025 12:38:05 +0200 Subject: [PATCH] Add null pointer check in CustomizedTool::create_target --- source/lib/customizedtool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/lib/customizedtool.cpp b/source/lib/customizedtool.cpp index 9171996..f9fb6e0 100644 --- a/source/lib/customizedtool.cpp +++ b/source/lib/customizedtool.cpp @@ -33,7 +33,8 @@ Target *CustomizedTool::create_source(const FS::Path &p) const Target *CustomizedTool::create_target(const vector &s, const string &a) { Target *target = parent.create_target(s, a); - target->set_tool(*this); + if(target) + target->set_tool(*this); return target; } -- 2.45.2