mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-42422 - NPE: TemporaryPlacesRegistry$.addInjectionInPlace
This commit is contained in:
+2
-1
@@ -96,7 +96,8 @@ public class InjectLanguageAction implements IntentionAction {
|
||||
final PsiLanguageInjectionHost host = findInjectionHost(editor, file);
|
||||
if (host == null) return;
|
||||
if (defaultFunctionalityWorked(host, languageId)) return;
|
||||
final Language language = InjectedLanguage.findLanguageById(languageId);
|
||||
Language language = InjectedLanguage.findLanguageById(languageId);
|
||||
if (language == null) return;
|
||||
try {
|
||||
for (LanguageInjectionSupport support : InjectorUtils.getActiveInjectionSupports()) {
|
||||
if (support.addInjectionInPlace(language, host)) return;
|
||||
|
||||
Reference in New Issue
Block a user