Skip to content

Conversation

@stephengold
Copy link
Member

Several things were broken here.

It was inappropriate for TestAppStates to use a default screen controller with "HelloJme.xml", because of course that screen controller does not implement the "quit()" method referenced in "HelloJme.xml". Also, "HelloJme.xml" specifies that the controller for its "start" screen should be an instance of TestNiftyGui. Furthermore, the "end" screen of "HelloJme.xml" is empty and therefore useless.

In order for TestAppStates and TestNiftyGui to cleanly share "HelloJme.xml", I added a class StartScreenController to serve as a screen controller for both apps.

I also deleted the "end" screen and re-purposed quit() to cleanly terminate the application.

@stephengold stephengold linked an issue May 9, 2021 that may be closed by this pull request
@stephengold stephengold added this to the v3.4.0 milestone May 9, 2021
@stephengold stephengold added the bug Something that is supposed to work, but doesn't. More severe than a "defect". label May 9, 2021
@stephengold stephengold merged commit cac52a0 into master May 12, 2021
@stephengold stephengold deleted the sgold-issue-1542 branch May 12, 2021 15:02
@stephengold stephengold added the examples specific to the jme3-examples sub-project label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something that is supposed to work, but doesn't. More severe than a "defect". examples specific to the jme3-examples sub-project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crash in TestAppStates

2 participants