Fixed NullPointerException in MemberFinder

This commit is contained in:
Emmanuel BENOîT 2015-09-12 14:20:48 +02:00
parent 5357b1ec4a
commit 84ee63afa8

View file

@ -310,13 +310,11 @@ public class MemberFinder< T >
if ( target == null || this.classFilter != null && !this.classFilter.test( target ) ) { if ( target == null || this.classFilter != null && !this.classFilter.test( target ) ) {
return; return;
} }
checked.add( target );
if ( this.interfaces && !this.classesFirst ) { if ( this.interfaces ) {
for ( final Class< ? > intf : target.getInterfaces( ) ) { checked.add( target );
if ( !checked.contains( intf ) ) { if ( !this.classesFirst ) {
this.findInternal( output , checked , intf ); this.checkInterfaces( output , checked , target );
}
} }
} }