the the application being null (it is being set on the BaseAppState initialization). So, this check should be if it is initialized instead of attached or the application should be set on the attachment moment instead of initialization in order to fix this issue.
If the addChild is called (on
CompositeAppState
) between the attach and initialization processes it throws a NPE due to:the the application being null (it is being set on the
BaseAppState
initialization). So, this check should be if it is initialized instead of attached or the application should be set on the attachment moment instead of initialization in order to fix this issue.