Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
logic: fix crash when using codeblocks project (issue #1109) (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored Nov 18, 2020
1 parent 8990eb3 commit 4b6b58d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib_cxx/utility/codeblocks/CodeblocksTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ std::shared_ptr<Target> Target::create(const TiXmlElement* element)
{
const TiXmlElement* compilerElement = element->FirstChildElement(
Compiler::getXmlElementName().c_str());
target->m_compiler = Compiler::create(compilerElement);
std::shared_ptr<Compiler> compiler = Compiler::create(compilerElement);
if (!compiler)
{
return std::shared_ptr<Target>();
}
target->m_compiler = compiler;
}

return target;
Expand Down

0 comments on commit 4b6b58d

Please sign in to comment.