{
unsigned n_packages = 0;
for(PackageMap::const_iterator i=packages.begin(); i!=packages.end(); ++i)
- if(i->second->is_configured())
+ if(i->second && i->second->is_configured())
++n_packages;
IO::print("%d active packages, %d targets\n", n_packages, targets.size());
}
for(PackageMap::const_iterator i=packages.begin(); i!=packages.end(); ++i)
{
- if(!i->second->is_configured())
+ if(!i->second || !i->second->is_configured())
continue;
SourcePackage *spkg = dynamic_cast<SourcePackage *>(i->second);