google-code-export / alloy4eclipse

Automatically exported from code.google.com/p/alloy4eclipse
0 stars 0 forks source link

NPE when opening a text file without extension #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install A4E 0.2.36
2. Create a text file, e.g., README
3. Open the text file using the text editor

What is the expected output? What do you see instead?
An editor for the text file is created with an error:
Could not open the editor: An unexpected exception was thrown.

java.lang.NullPointerException
    at fr.univartois.cril.alloyplugin.ui.RenameAls.setActiveEditor
(RenameAls.java:47)
    at org.eclipse.ui.internal.EditorPluginAction.editorChanged
(EditorPluginAction.java:75)
    at org.eclipse.ui.internal.EditorPluginAction.<init>
(EditorPluginAction.java:34)
    at org.eclipse.ui.internal.ActionDescriptor.createAction
(ActionDescriptor.java:262)
    at org.eclipse.ui.internal.ActionDescriptor.<init>
(ActionDescriptor.java:176)

What version of the product are you using? On what operating system?
DSLToolkit 1.0M6 + A4E 0.2.36

Please provide any additional information below.
There is an obvious bug in 
fr.univartois.cril.alloyplugin.ui.RenameAls.setActiveEditor

Original issue reported on code.google.com by nicolas....@gmail.com on 19 May 2009 at 2:30

GoogleCodeExporter commented 9 years ago
Please check if this is still the case (it should no longer be used).

Original comment by daniel.l...@gmail.com on 18 May 2011 at 8:01

GoogleCodeExporter commented 9 years ago
This problem is no longer valid since rename refactoring is supported by Xtext.

Original comment by daniel.l...@gmail.com on 17 Apr 2012 at 6:49