The question here is when this gets executed, and whether theConfig is already assigned. One simple solution would be to put it into the member initialization list in the ctor. Can you please do that?