[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4433) Cannot close editors which file no longer exists

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Mon Jun 8 07:27:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12470967#action_12470967 ] 

Viacheslav Kabanovich commented on JBIDE-4433:
----------------------------------------------

When trying to reproduce the issue, I have got the following exception:

java.lang.NullPointerException
	at org.jboss.tools.jst.web.tiles.ui.editor.model.impl.TilesModel.disconnectFromModel(TilesModel.java:202)
	at org.jboss.tools.jst.web.tiles.ui.editor.model.impl.TilesModel.dispose(TilesModel.java:84)
	at org.jboss.tools.jst.web.tiles.ui.editor.TilesGuiEditor.dispose(TilesGuiEditor.java:91)
	at org.jboss.tools.jst.web.tiles.ui.editor.TilesCompoundEditor.dispose(TilesCompoundEditor.java:89)


> Cannot close editors which file no longer exists
> ------------------------------------------------
>
>                 Key: JBIDE-4433
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4433
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 3.1.0.M1
>            Reporter: Max Rydahl Andersen
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.1.0.M2
>
>
> 1. Open a set of .xhtml or .xml files that JBoss Tools XModel is handling
> 2. Delete the open files on the filesystem directly 
> 3. Try and use Close All editors 
> That fails with this:
> java.lang.IllegalArgumentException
> 	at org.eclipse.ui.part.FileEditorInput.getPath(FileEditorInput.java:208)
> 	at org.jboss.tools.common.model.ui.editor.ModelObjectLocationEditorInput.equals(ModelObjectLocationEditorInput.java:48)
> 	at org.eclipse.ui.internal.util.Util.equals(Util.java:370)
> 	
> Looks like the equals method is not failsafe causing errors.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list