Skip to content

Commit

Permalink
update_3.14.1 and fix refrencefactory getObjectType (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
HzjNeverStop authored Aug 30, 2022
1 parent 6f2075f commit 02f3b7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<description>SOFABoot Build</description>

<properties>
<revision>3.14.0</revision>
<revision>3.14.1-SNAPSHOT</revision>
<sofa.boot.version>${revision}</sofa.boot.version>
<!--maven plugin-->
<maven.staging.plugin>1.6.7</maven.staging.plugin>
Expand Down
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 02f3b7b

Please sign in to comment.