From 372655430e8d984d2e83b98c0ad31fcabc5e89b3 Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Mon, 28 Nov 2016 17:47:09 +0300 Subject: [PATCH] gradle: possible npe fix --- .../gradle/service/resolve/GradleConfigurationsContributor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/service/resolve/GradleConfigurationsContributor.kt b/plugins/gradle/src/org/jetbrains/plugins/gradle/service/resolve/GradleConfigurationsContributor.kt index 79fa41a9522e..b6f300c8d891 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/service/resolve/GradleConfigurationsContributor.kt +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/service/resolve/GradleConfigurationsContributor.kt @@ -86,7 +86,7 @@ class GradleConfigurationsContributor : GradleMethodContextContributor { val call = getContainingCall(closure) ?: return true val result = resolveActualCall(call) for (psiType in result.substitutor.substitutionMap.values) { - if (psiType.equalsToText(GRADLE_API_CONFIGURATION)) { + if (psiType != null && psiType.equalsToText(GRADLE_API_CONFIGURATION)) { if (!GradleResolverUtil.processDeclarations(psiManager, processor, state, place, GRADLE_API_CONFIGURATION)) return false return false }