Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • B bjgf
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Issues 127
    • Issues 127
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • BlueJ
  • bjgf
  • Issues
  • #1460

Closed
Open
Created Mar 23, 2008 by Neil Brown@nccbMaintainer

[GREENFOOT-116] Open Recent on a deleted project not handled well

When using the Open Recent menu to open a project that no longer exists, this exception is printed:

Exception in thread "Thread-416" java.lang.NullPointerException at greenfoot.core.GreenfootMain.deleteClassFiles(GreenfootMain.java:601) at greenfoot.core.GreenfootMain.deleteAllClassFiles(GreenfootMain.java:584) at greenfoot.core.GreenfootMain.prepareGreenfootProject(GreenfootMain.java:449) at greenfoot.core.GreenfootMain.updateApi(GreenfootMain.java:537) at greenfoot.core.GreenfootMain.openProject(GreenfootMain.java:233) at greenfoot.actions.OpenRecentProjectAction$1.run(OpenRecentProjectAction.java:43)

It also incorrectly shows the dialog saying that there is a mismatch between project and greenfoot version.

This should be changed, so that a message dialog is displayed, telling the user that the project no longer exists.


Issue metadata

  • Issue type: Bug
  • Priority: Lowest
  • Fix versions: 1.4.5
Assignee
Assign to
Time tracking