NPE @com.intellij.openapi.roots.ui.configuration.ClasspathEditor.setSdk

This commit is contained in:
Alexey Pegov
2009-10-27 18:07:54 +03:00
parent 6c5a1d51b8
commit 07381a010e
@@ -159,7 +159,10 @@ public class ClasspathEditor extends ModuleElementsEditor implements ModuleRootL
model.inheritSdk();
}
myPanel.forceInitFromModel();
if (myPanel != null) {
myPanel.forceInitFromModel();
}
flushChangesToModel();
return oldSdk;