Fix NPE in DebuggerUtils
#EA-69703 - assert: DebuggerUtils.analyzeElementWithInline
This commit is contained in:
@@ -277,11 +277,11 @@ public class DebuggerUtils {
|
|||||||
List<BindingContext> innerContexts = new ArrayList<BindingContext>();
|
List<BindingContext> innerContexts = new ArrayList<BindingContext>();
|
||||||
for (JetNamedFunction inlineFunctions : collectedElements) {
|
for (JetNamedFunction inlineFunctions : collectedElements) {
|
||||||
JetExpression body = inlineFunctions.getBodyExpression();
|
JetExpression body = inlineFunctions.getBodyExpression();
|
||||||
assert body != null : "Inline function should have a body: " + inlineFunctions.getText();
|
if (body != null) {
|
||||||
|
BindingContext bindingContextForFunction = resolutionFacade.analyze(body, BodyResolveMode.FULL);
|
||||||
BindingContext bindingContextForFunction = resolutionFacade.analyze(body, BodyResolveMode.FULL);
|
innerContexts.add(analyzeElementWithInline(resolutionFacade, bindingContextForFunction, inlineFunctions, deep + 1,
|
||||||
innerContexts.add(analyzeElementWithInline(resolutionFacade, bindingContextForFunction, inlineFunctions, deep + 1,
|
analyzedElements, analyzeInlineFunctions));
|
||||||
analyzedElements, analyzeInlineFunctions));
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
innerContexts.add(bindingContext);
|
innerContexts.add(bindingContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user