From f91d55a9d6fc43fd3839b840c5365b116e4ea40f Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Fri, 9 Jun 2017 14:01:31 +0300 Subject: [PATCH] Fixed null pointer exception --- .../inspector/java/structure/MethodDescriptor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/MethodDescriptor.java b/src/main/java/eu/svjatoslav/inspector/java/structure/MethodDescriptor.java index d411cb0..efe6992 100755 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/MethodDescriptor.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/MethodDescriptor.java @@ -141,8 +141,9 @@ public class MethodDescriptor implements GraphElement, protected int getOutsideVisibleReferencesCount() { int result = 0; - if (returnType.isVisible()) - result++; + if (returnType != null) + if (returnType.isVisible()) + result++; for (final ClassDescriptor classDescriptor : argumentTypes) if (classDescriptor.isVisible()) -- 2.20.1