avoid null pointer
@@ -2,7 +2,9 @@ package com.jpmorgan.quorum.encryption.ec;
import com.quorum.tessera.encryption.Encryptor;
import com.quorum.tessera.encryption.EncryptorFactory;
+import java.util.Collections;
import java.util.Map;
+import java.util.Optional;
public class EllipticalCurveEncryptorFactory implements EncryptorFactory {
@@ -13,7 +15,7 @@ public class EllipticalCurveEncryptorFactory implements EncryptorFactory {
@Override
public Encryptor create(Map<String, String> properties) {
-
+ final Map<String, String> props = Optional.ofNullable(properties).orElse(Collections.emptyMap());
String symmetricCipher = properties.getOrDefault("symmetricCipher", "AES/GCM/NoPadding");
String ellipticCurve = properties.getOrDefault("ellipticCurve", "secp256r1");
int nonceLength = Integer.parseInt(properties.getOrDefault("nonceLength", "24"));
