Open a composition in which a connection has a number of adapters.
Select a component, and click on "Connectivity ..." in the popup menu.
Click on the button in the "Adapters" column to bring up the view of the adapters on the connection.
Select the table row for one of the adapters (see the attached screenshot "RemoveAdapeter.PNG" for an illustration.
Click on "Edit" then "Remove Adapter".
Pipistrelle crashes with a null reference at line 134 of Linkage.cs.in the function RemoveOrphanedAdapters().
As a local fix I added a conditional at line 134 of linkage.cs:
@@ -131,7 +131,8 @@ namespace FluidEarth2.Sdk
orphanedAdapter.Adaptee.RemoveAdaptedOutput(orphanedAdapter);
orphanedAdapter = FindOrphanedAdapter(output);
- composition.Remove(composition.GetItem(orphanedAdapter));
+ if (orphanedAdapter != null)
+ composition.Remove(composition.GetItem(orphanedAdapter));
}
output = output is IBaseAdaptedOutput
Anonymous