This commit is contained in:
Clebert Suconic 2020-02-04 10:13:10 -05:00
commit a2ed46358f
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) { private FederationPolicy getFederationPolicy(String clazz) {
try { try {
return (FederationPolicy) Class.forName(clazz).getConstructor(null).newInstance(); return (FederationPolicy) Class.forName(clazz).getConstructor((Class<?>[]) null).newInstance();
} catch (Exception e) { } catch (Exception e) {
throw new IllegalStateException("Error. Unable to instantiate FederationPolicy: " + e.getMessage(), e); throw new IllegalStateException("Error. Unable to instantiate FederationPolicy: " + e.getMessage(), e);
} }