Skip to content

Commit

Permalink
Fixed MPS-9643 Editor with images throws exception on VCS merge
Browse files Browse the repository at this point in the history
Fixed MPS-10258 [build:15.6422] Failed to create cell for node [leftExpression] HashExpression <no name>[1240850659107] in jetbrains.charisma.user.profile
  • Loading branch information
Evgeny Gerashchenko authored and Evgeny Gerashchenko committed Dec 10, 2010
1 parent dea56a0 commit c48abdd
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,17 @@ private static String expandIconPath(String path, SNode sourceNode) {
}

private static IModule findAnchorModule(SModel sourceModel) {
IModule module;
IModule module = null;
SModelDescriptor modelDescriptor = sourceModel.getModelDescriptor();
Language modelLang = Language.getLanguageFor(modelDescriptor);
if (modelLang != null) {
module = modelLang;
} else {
module = modelDescriptor.getModule();
if (!(module instanceof Solution)) {
module = null;
if (modelDescriptor != null) {
module = modelDescriptor.getModule();
if (!(module instanceof Solution)) {
module = null;
}
}
}
return module;
Expand Down

0 comments on commit c48abdd

Please sign in to comment.