Fix nullptr
This commit is contained in:
parent
3a47d92522
commit
909a5a2e6d
@ -59,11 +59,14 @@ public class TdClusterManager {
|
||||
.registerDefaultCodec(TdResultMessage.class, new TdResultMessageCodec())
|
||||
.registerDefaultCodec(StartSessionMessage.class, new StartSessionMessageCodec())
|
||||
.registerDefaultCodec(EndSessionMessage.class, new EndSessionMessageCodec());
|
||||
for (Class<?> value : ConstructorDetector.getTDConstructorsUnsafe().values()) {
|
||||
var constructors = ConstructorDetector.getTDConstructorsUnsafe();
|
||||
if (constructors != null) {
|
||||
for (Class<?> value : constructors.values()) {
|
||||
vertx.eventBus().getDelegate().registerDefaultCodec(value, new TdMessageCodec(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static Mono<TdClusterManager> ofMaster(@Nullable JksOptions keyStoreOptions, @Nullable JksOptions trustStoreOptions, boolean onlyLocal, String masterHostname, String netInterface, int port, Set<String> nodesAddresses) {
|
||||
if (definedMasterCluster.compareAndSet(false, true)) {
|
||||
|
Loading…
Reference in New Issue
Block a user