From 5108e88fb7f6923346147ed6d342da1568bf2d89 Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Thu, 3 Oct 2019 15:58:45 +0300 Subject: [PATCH] [groovy] fix warnings in ConfigSlurperMapContentProvider GitOrigin-RevId: d0dfad782dd1f9902843b6620d7047b263ab168b --- .../configSlurper/ConfigSlurperMapContentProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/configSlurper/ConfigSlurperMapContentProvider.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/configSlurper/ConfigSlurperMapContentProvider.java index 2f3bf7c593e5..5cd4a4a4bc2b 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/configSlurper/ConfigSlurperMapContentProvider.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/configSlurper/ConfigSlurperMapContentProvider.java @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.configSlurper; import com.intellij.openapi.util.Pair; @@ -51,6 +51,9 @@ public class ConfigSlurperMapContentProvider extends GroovyMapContentProvider { return null; } } + if (resolveResult == null) { + return null; + } Collections.reverse(path);