Commit ce1f6198 authored by Evgeny Mandrikov's avatar Evgeny Mandrikov
Browse files

fix NPE in CheckMethodAdapter

parent 9038c45c
Pipeline #4435 passed with stage
in 11 minutes and 11 seconds
...@@ -457,8 +457,10 @@ public class CheckMethodAdapter extends MethodVisitor { ...@@ -457,8 +457,10 @@ public class CheckMethodAdapter extends MethodVisitor {
} catch (AnalyzerException e) { } catch (AnalyzerException e) {
throwError(analyzer, e); throwError(analyzer, e);
} }
if (methodVisitor != null) {
accept(methodVisitor); accept(methodVisitor);
} }
}
private void throwError(final Analyzer<BasicValue> analyzer, final Exception e) { private void throwError(final Analyzer<BasicValue> analyzer, final Exception e) {
StringWriter stringWriter = new StringWriter(); StringWriter stringWriter = new StringWriter();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment