Skip to content

[GREENFOOT-175] Exporting allowed with no world

When no world has been created, the option to export is still there, but it throws a not to clear exception when you try and do it:

Exception in thread "Thread-143" java.lang.NullPointerException at greenfoot.export.Exporter.publishToWebServer(Exporter.java:82) at greenfoot.gui.export.ExportDialog$ExportThread.run(ExportDialog.java:164)

The exception could be caught and cleared up, but wouldn't it just be better to grey out the export option completely if there's no world there?


Issue metadata

  • Issue type: Bug
  • Priority: Medium
  • Fix versions: 1.4.6