BHoM / BHoM_Adapter

GNU Lesser General Public License v3.0
7 stars 5 forks source link

BHoM_Adapter: Add null check in AssignNextFreeId #198

Closed kThorsager closed 4 years ago

kThorsager commented 4 years ago

Description:

Normally the Adapter property AdapterIdName should always be present in any Toolkit. However, some Adapters (read: Socket_Toolkit) might not use that at all, and might have skipped defining it. While we can also enforce the definition of AdapterIdName through compliance, in addition we can add a null check in AssignNextFreeId that would make the rest of the Push work.