fix: null point exception

This commit is contained in:
CaiHQ 2022-04-12 16:30:24 +08:00
parent 1d3efbdb97
commit 47661ad923

View File

@ -233,6 +233,8 @@ public class Contract extends SM2Verifiable implements Serializable {
} }
public JsonElement getCreateParam() { public JsonElement getCreateParam() {
return createParam.getJsonElement(); if (createParam != null)
return createParam.getJsonElement();
return null;
} }
} }