Closed RlanderRISCSW closed 2 years ago
Instances of the generated CPACS classes were not intended to be used disconnected from a CPACS tree. IIRC I implemented the constructor with the CTiglUIDManager*
to allow limited use in unit tests. I think the best you can do is assert
or throw
in GetUIDManager
. Constructing a CPACS class with nullptr
for the CTiglUIDManager*
is the design flaw here.
The
GetUIDManager
functions which are generated for each class return theCTiglUIDManager
by reference. In the constructor these classes get theCTiglUIDManager
via a pointer which might be NULL. In this case calling the getter would cause dereferencing a null pointer.