History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-11783
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Keith Lea
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Throw clearer exception when attempting to open editor for file of unknown type in unit test

Created: 03 Mar 07 02:30   Updated: 20 Mar 07 18:44
Component/s: Plugin Support. API

Build: 6,148
Severity: Low


 Description  « Hide
Here's what it says now:

java.lang.IllegalStateException: @NotNull method com/intellij/openapi/editor/impl/EditorImpl.getDocument must not return null
at com.intellij.openapi.editor.impl.EditorImpl.getDocument(EditorImpl.java)
at com.intellij.openapi.editor.impl.EditorMarkupModelImpl.<init>(EditorMarkupModelImpl.java:34)
at com.intellij.openapi.editor.impl.EditorImpl.<init>(EditorImpl.java:297)
at com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:16)
at com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:5)
at com.intellij.testFramework.TestEditorManagerImpl.openTextEditor(TestEditorManagerImpl.java:75)
at com.intellij.testFramework.TestEditorManagerImpl.openFileWithProviders(TestEditorManagerImpl.java:42)
at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:2)
[[ my code ]]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.testFramework.IdeaTestCase.access$201(IdeaTestCase.java:10)
at com.intellij.testFramework.IdeaTestCase$6.run(IdeaTestCase.java:7)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:402)
at com.intellij.testFramework.IdeaTestCase$7.run(IdeaTestCase.java:3)
at com.intellij.testFramework.IdeaTestCase.invokeTestRunnable(IdeaTestCase.java:71)
at com.intellij.testFramework.IdeaTestCase.runTest(IdeaTestCase.java:202)
at com.intellij.testFramework.IdeaTestCase$5.run(IdeaTestCase.java:12)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.