[BLUEJ-163] Can't close preferences dialog when toggling "show testing tools" in an empty Package frame
When you switch Show Testing Tools on (or off) with only an empty Package frame open (i.e. with all projects closed), there's an exception: {noformat} NullPointerException at bluej.pkgmgr.PkgMgrFrame.isJavaMEpackage(PkgMgrFrame.java:3230) at bluej.pkgmgr.PkgMgrFrame.updateTestingStatus(PkgMgrFrame.java:445) at bluej.prefmgr.MiscPrefPanel.commitEditing(MiscPrefPanel.java:210) {noformat}
The result is the dialog won't close.
The workaround is to open a project, and change the preference while the project is open.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.5.3