Skip to content

Commit f5baef5

Browse files
committed
check-err
1 parent 3b89d41 commit f5baef5

File tree

1 file changed

+3
-0
lines changed
  • iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua

1 file changed

+3
-0
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ private void customizeServer(final PipeParameters parameters) {
285285
: CONNECTOR_OPC_UA_SECURITY_POLICY_SERVER_DEFAULT_VALUES.stream())
286286
.map(this::getSecurityPolicy)
287287
.collect(Collectors.toSet());
288+
if (securityPolicies.isEmpty()) {
289+
throw new PipeException("The security policy cannot be empty.");
290+
}
288291

289292
synchronized (SERVER_KEY_TO_REFERENCE_COUNT_AND_NAME_SPACE_MAP) {
290293
serverKey = httpsBindPort + ":" + tcpBindPort;

0 commit comments

Comments
 (0)