[groovy] fix warnings in ConfigSlurperMapContentProvider

GitOrigin-RevId: d0dfad782dd1f9902843b6620d7047b263ab168b
This commit is contained in:
Daniil Ovchinnikov
2019-10-03 13:06:01 +00:00
committed by intellij-monorepo-bot
parent 7b7eb94988
commit 5108e88fb7
@@ -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);