Skip to content

Commit

Permalink
create pointer correctly to fix exception in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 13, 2024
1 parent 8abd2e5 commit 6e58a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OdbDesignLib/ProductModel/PinConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace Odb::Lib::ProductModel
void PinConnection::from_protobuf(const Odb::Lib::Protobuf::ProductModel::PinConnection& message)
{
m_name = message.name();
m_pComponent = std::shared_ptr<Component>();
m_pComponent = std::make_shared<Component>();
m_pComponent->from_protobuf(message.component());
m_pPin = std::make_shared<Pin>("", -1);
m_pPin->from_protobuf(message.pin());
Expand Down

0 comments on commit 6e58a74

Please sign in to comment.