This commit is contained in:
Clebert Suconic 2020-02-03 11:07:46 -05:00
commit 4172ffec82
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public abstract class FederationStreamConnectMessage <T extends FederationStream
private FederationPolicy getFederationPolicy(String clazz) {
try {
return (FederationPolicy) Class.forName(clazz).getConstructor((Class<?>) null).newInstance();
return (FederationPolicy) Class.forName(clazz).getConstructor(null).newInstance();
} catch (Exception e) {
throw new IllegalStateException("Error. Unable to instantiate FederationPolicy: " + e.getMessage(), e);
}