Home Features Docs Blog Support GitHub

Module disappeared, I can't run the project can't create new run config due to null exception in MOE


(Gary Pinkham) #1

so I have a project in Android Studio. shared with other developers… about a couple of weeks ago I noticed that I couldn’t change the run config as the module drop down was empty… won’t let you save without selecting a module but there’s non to select. So I could run it on the emulator and see the logs etc etc but couldn’t change any config params… not ideal but at least it ran. others on the team had no issue… well the other day the run config completely disappeared. no idea why… but now when I try to make a new run config I can’t because again the module drop down is empty. I noticed this entry in the issue log (see below)…

I have tried to delete the .idea directory… no luck… I checked out a new directory from source control and opened in android studio. again no luck. any thoughts??? thanks

java.lang.NullPointerException
at org.moe.idea.utils.ModuleUtils.getModulePath(ModuleUtils.java:109)
at org.moe.idea.runconfig.configuration.MOERunConfigurationEditor.populateDevices(MOERunConfigurationEditor.java:358)
at org.moe.idea.runconfig.configuration.MOERunConfigurationEditor.populateControls(MOERunConfigurationEditor.java:284)
at org.moe.idea.runconfig.configuration.MOERunConfigurationEditor.resetEditorFrom(MOERunConfigurationEditor.java:131)
at org.moe.idea.runconfig.configuration.MOERunConfigurationEditor.resetEditorFrom(MOERunConfigurationEditor.java:70)
at com.intellij.openapi.options.SettingsEditor.lambda$resetFrom$0(SettingsEditor.java:73)
at com.intellij.openapi.options.SettingsEditor.bulkUpdate(SettingsEditor.java:80)
at com.intellij.openapi.options.SettingsEditor.resetFrom(SettingsEditor.java:73)
at com.intellij.execution.impl.ConfigurationSettingsEditor$ConfigToSettingsWrapper.resetEditorFrom(ConfigurationSettingsEditor.java:292)
at com.intellij.execution.impl.ConfigurationSettingsEditor$ConfigToSettingsWrapper.resetEditorFrom(ConfigurationSettingsEditor.java:276)
at com.intellij.openapi.options.CompositeSettingsEditor.resetEditorFrom(CompositeSettingsEditor.java:52)
at com.intellij.execution.impl.ConfigurationSettingsEditorWrapper.resetEditorFrom(ConfigurationSettingsEditorWrapper.java:98)
at com.intellij.execution.impl.ConfigurationSettingsEditorWrapper.resetEditorFrom(ConfigurationSettingsEditorWrapper.java:25)
at com.intellij.openapi.options.SettingsEditor.lambda$resetFrom$0(SettingsEditor.java:73)
at com.intellij.openapi.options.SettingsEditor.bulkUpdate(SettingsEditor.java:80)
at com.intellij.openapi.options.SettingsEditor.resetFrom(SettingsEditor.java:73)
at com.intellij.openapi.options.SettingsEditorConfigurable.reset(SettingsEditorConfigurable.java:41)
at com.intellij.execution.impl.RunConfigurable.showTemplateConfigurable(RunConfigurable.kt:320)
at com.intellij.execution.impl.RunConfigurable.access$showTemplateConfigurable(RunConfigurable.kt:73)
at com.intellij.execution.impl.RunConfigurable$initTree$3.valueChanged(RunConfigurable.kt:256)
at javax.swing.JTree.fireValueChanged(JTree.java:2927)

[… cut here…]


#2