From: Mikko Rasa Date: Sun, 15 Jul 2012 15:59:11 +0000 (+0300) Subject: Fix a crash in Binary X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4699c9eb82fb55268976fda87f1f4bf5f7df95a4;p=builder.git Fix a crash in Binary --- diff --git a/source/binary.cpp b/source/binary.cpp index 7a3e7a5..aa26608 100644 --- a/source/binary.cpp +++ b/source/binary.cpp @@ -53,7 +53,8 @@ void Binary::find_depends() lib = lib->get_real_target(); if(StaticLibrary *stlib = dynamic_cast(lib)) - queue.push_back(stlib->get_component()); + if(stlib->get_component()) + queue.push_back(stlib->get_component()); } else builder.problem(spkg.get_name(), format("Couldn't find library %s for %s", *i, name));