[BLUEJ-22] NPE when opening editor for a class wihtout source.
If the source file for a class is deleted and I try to open the editor for the class the error below is printed.
It might be useful to show the interface view if the documentation is available. Otherwise an error message should be given to the user.
{noformat} java.lang.NullPointerException at bluej.pkgmgr.target.ClassTarget.getEditor(ClassTarget.java:624) at bluej.pkgmgr.target.ClassTarget.getEditor(ClassTarget.java:606) at bluej.pkgmgr.target.EditableTarget.open(EditableTarget.java:42) at bluej.pkgmgr.target.ClassTarget.doubleClick(ClassTarget.java:1389) at bluej.graph.SelectionSet$1.run(SelectionSet.java:89) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) ... {noformat}
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 2.5.1