Can't add a Scala facet to new project

Hi.

I've submitted this error but thought I'd post as well as it is quite important.

If you have a new project and try to add a Scala facet to a module, you can't and get this exception:

Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.util.EdtRunnable$1@14b1083a,notifier=null,catchExceptions=false,when=1291313514054] on sun.awt.X11.XToolkit@1c33a141
java.lang.NullPointerException
 at com.intellij.openapi.ui.MasterDetailsComponent.addNode(MasterDetailsComponent.java:490)
 at com.intellij.openapi.roots.ui.configuration.projectRoot.FacetStructureConfigurable.addFacetNode(FacetStructureConfigurable.java:105)
 at com.intellij.openapi.roots.ui.configuration.projectRoot.FacetEditorFacadeImpl.a(FacetEditorFacadeImpl.java:65)
 at com.intellij.openapi.roots.ui.configuration.projectRoot.FacetEditorFacadeImpl.createAndAddFacet(FacetEditorFacadeImpl.java:128)
 at com.intellij.openapi.roots.ui.configuration.projectRoot.FacetEditorFacadeImpl.createFacet(FacetEditorFacadeImpl.java:123)
 at com.intellij.facet.impl.ui.actions.AddFacetAction.actionPerformed(AddFacetAction.java:53)
 at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:482)
 at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:452)
 at com.intellij.openapi.wm.impl.FocusManagerImpl.d(FocusManagerImpl.java:435)
 at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:47)
 at com.intellij.openapi.wm.impl.FocusManagerImpl$1.runEdt(FocusManagerImpl.java:75)
 at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:25)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:506)
 at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
 at java.awt.Dialog$1.run(Dialog.java:1046)
 at java.awt.Dialog$3.run(Dialog.java:1098)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Dialog.show(Dialog.java:1096)
 at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:670)
 at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:412)
 at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1063)
 at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1048)
 at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:149)
 at com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:137)
 at com.intellij.ide.actions.ShowStructureSettingsAction.actionPerformed(ShowStructureSettingsAction.java:35)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:524)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:564)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:444)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:197)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:492)
 at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Please sign in to leave a comment.