Skip to content

Commit 3d72d8b

Browse files
committed
check null port
1 parent 4c6c29f commit 3d72d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/neo4j/pool/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const getPayload = (cert: any) => {
2222
ipv6: r.ipv6,
2323
dnsName: (r.dnsName) ? r.dnsName.toString() : null,
2424
dnsSrvName: (r.dns_srv_name) ? r.dns_srv_name.data.toString() : null,
25-
port: r.port.toString(),
25+
port: (r.port) ? r.port.toString() : null,
2626
})),
2727
poolMetadata: {
2828
url: cert.url,

0 commit comments

Comments
 (0)