mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
225 stars 77 forks source link

GraphView Plugin throws Exception #102

Closed DomenikP closed 12 years ago

DomenikP commented 12 years ago

While editing a Java class, the following Exception was thrown:

null java.lang.NullPointerException at com.mbeddr.mpsutil.graphview.pluginSolution.plugin.EditorActivationListener.cleanupOldEditor(EditorActivationListener.java:65) at com.mbeddr.mpsutil.graphview.pluginSolution.plugin.EditorActivationListener.access$0(EditorActivationListener.java:56) at com.mbeddr.mpsutil.graphview.pluginSolution.plugin.EditorActivationListener$1.run(EditorActivationListener.java:48) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:118) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:114) at com.mbeddr.mpsutil.graphview.pluginSolution.plugin.EditorActivationListener.selectionChanged(EditorActivationListener.java:43) at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:110) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:220) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:226) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:212) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:209) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:202) at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:42) at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:128) at $Proxy65.selectionChanged(Unknown Source) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$15.run(FileEditorManagerImpl.java:1375) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$12$1.run(FileEditorManagerImpl.java:859) at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:611) at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:595) at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:565) at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:55) at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:464) at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1729) at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:442) at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActions(ActionToolbarImpl.java:861) at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$400(ActionToolbarImpl.java:56) at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$MyTimerListener.run(ActionToolbarImpl.java:769) at com.intellij.openapi.actionSystem.impl.WeakTimerListener.run(WeakTimerListener.java:50) at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.runListenerAction(ActionManagerImpl.java:1242) at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.notifyListeners(ActionManagerImpl.java:1231) at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.actionPerformed(ActionManagerImpl.java:1212) at javax.swing.Timer.fireActionPerformed(Timer.java:291) at javax.swing.Timer$DoPostEvent.run(Timer.java:221) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682) at java.awt.EventQueue.access$000(EventQueue.java:85) at java.awt.EventQueue$1.run(EventQueue.java:643) at java.awt.EventQueue$1.run(EventQueue.java:641) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:652) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

bkolb commented 12 years ago

Are you sure you have the latest version? I fixed a similar NPE yesterday evening in the same place....