Skip to content

Commit eae36ed

Browse files
authored
Update ProjMgrWorker.cpp
NULL pointer check
1 parent a48de33 commit eae36ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/projmgr/src/ProjMgrWorker.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,6 +2680,9 @@ bool ProjMgrWorker::ProcessGpdsc(ContextItem& context) {
26802680
}
26812681
for (const auto c : components) {
26822682
auto component = c->GetComponent();
2683+
if(!component) {
2684+
continue;
2685+
}
26832686
if (bootstrap.instance->GetComponentID(false) == component->GetComponentID(false)) {
26842687
if (VersionCmp::Compare(bootstrap.instance->GetVersionString(), component->GetVersionString()) > 0) {
26852688
// bootstrap has greater version, do not replace it

0 commit comments

Comments
 (0)