From: Svjatoslav Agejenko Date: Fri, 9 Jun 2017 11:01:31 +0000 (+0300) Subject: Fixed null pointer exception X-Git-Tag: javainspect-1.7~37 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=f91d55a9d6fc43fd3839b840c5365b116e4ea40f;p=javainspect.git Fixed null pointer exception --- 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())