NPE when adding an editor to a project
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at jetbrains.mps.smodel.Language.getEditorFQName(Language.java:233)
at
jetbrains.mps.smodel.Language.getEditorModelDescriptor(Language.java:
213)
at
jetbrains.mps.smodel.Language.getEditorModelDescriptor(Language.java:
204)
at
jetbrains.mps.smodel.Language.getLastChangeTime(Language.java:136)
at jetbrains.mps.smodel.Language.isUpToDate(Language.java:128)
at
jetbrains.mps.ide.projectPane.ProjectPane$ProjectLanguageTreeNode.toS
tring(ProjectPane.java:964)
at javax.swing.JTree.convertValueToText(JTree.java:1139)
at
javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent
(DefaultTreeCellRenderer.java:331)
at
jetbrains.mps.ide.ui.MPSTree$1.getTreeCellRendererComponent(MPSTree.j
ava:30)
at
javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1399)
at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1189)
at javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeUI.java:152)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:740)
at javax.swing.JComponent.paint(JComponent.java:1003)
at jetbrains.mps.ide.ui.MPSTree.paint(MPSTree.java:123)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4937)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
at javax.swing.JComponent.paint(JComponent.java:993)
at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
60)
at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
)
at java.awt.Container.paint(Container.java:1709)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at
sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.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)
Please sign in to leave a comment.
Thomas Singer (MoTJ) wrote:
Could you provide more information about how to reproduce this. I tried
to create new project then add edtitor to it and create in editor's
model new concept, but exception didn't appear.
I've opened the project properties, pressed Alt-Enter (or -Ins?) at the
editor field and - since I have no clue what to fill out - clicked OK.
Then MPS turned into gray, only the toolbar icons visible.
Tom
Thomas Singer (MoTJ) wrote:
Thanks. It will be fixed in next build.