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 ) ) {
return;
}
checked.add( target );
if ( this.interfaces && !this.classesFirst ) {
for ( final Class< ? > intf : target.getInterfaces( ) ) {
if ( !checked.contains( intf ) ) {
this.findInternal( output , checked , intf );
}
if ( this.interfaces ) {
checked.add( target );
if ( !this.classesFirst ) {
this.checkInterfaces( output , checked , target );
}
}