Skip to content

Commit

Permalink
Fix null value of ReferenceFactory.getObjectType. (#1014)
Browse files Browse the repository at this point in the history
Co-authored-by: 致节 <[email protected]>
  • Loading branch information
HzjNeverStop and 致节 authored Sep 13, 2022
1 parent f83afb7 commit 591daf8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ public Object getObject() throws Exception {

@Override
public Class<?> getObjectType() {
return getInterfaceClass();
try {
Class<?> type = getInterfaceClass();
return type != null ? type : ReferenceFactoryBean.class;
} catch (Throwable t) {
// Class not found
return ReferenceFactoryBean.class;
}
}

@Override
Expand Down

0 comments on commit 591daf8

Please sign in to comment.