]> git.tdb.fi Git - builder.git/commitdiff
Add null pointer check in CustomizedTool::create_target master
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Jan 2025 10:38:05 +0000 (12:38 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Jan 2025 10:38:05 +0000 (12:38 +0200)
source/lib/customizedtool.cpp

index 9171996dcbb1a2082dbbc998e3d6806dc61f16ff..f9fb6e0176f24497587ed2f52304ea5a04560b3d 100644 (file)
@@ -33,7 +33,8 @@ Target *CustomizedTool::create_source(const FS::Path &p) const
 Target *CustomizedTool::create_target(const vector<Target *> &s, const string &a)
 {
        Target *target = parent.create_target(s, a);
-       target->set_tool(*this);
+       if(target)
+               target->set_tool(*this);
        return target;
 }