Skip to content

Commit 7d1f97f

Browse files
author
Philippe Elsass
committed
Prevent PM crash in case of incorrect user settings
1 parent 75154c6 commit 7d1f97f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

External/Plugins/ProjectManager/Actions/ProjectActions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,13 @@ public void UpdateASCompletion(IMainForm mainForm, Project project)
368368
}
369369
}
370370
}
371-
else
371+
else if (PluginCore.PlatformData.SupportedLanguages.ContainsKey("as3"))
372372
{
373373
var targets = PluginCore.PlatformData.SupportedLanguages["as3"].Platforms;
374374
var flashPlatform = targets[PlatformData.FLASHPLAYER_PLATFORM];
375375
version = flashPlatform.LastVersion.Value;
376376
}
377+
else version = "11.0";
377378

378379
DataEvent de;
379380
Hashtable info = new Hashtable();

0 commit comments

Comments
 (0)