That’s not the cause of that exception. It means the method being invoked is throwing an exception. Neither is draw being called before setup.
My guess is that it’s because the line constructing the ControlFrame needs moving to the end of setup so that the ring system is constructed first. This may not be a complete fix if threading is involved though.