From 47661ad92374580434d098b200cfeecd3a91703d Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Tue, 12 Apr 2022 16:30:24 +0800 Subject: [PATCH] fix: null point exception --- src/main/entry/org/bdware/sc/bean/Contract.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/entry/org/bdware/sc/bean/Contract.java b/src/main/entry/org/bdware/sc/bean/Contract.java index b79e35a..7536681 100644 --- a/src/main/entry/org/bdware/sc/bean/Contract.java +++ b/src/main/entry/org/bdware/sc/bean/Contract.java @@ -233,6 +233,8 @@ public class Contract extends SM2Verifiable implements Serializable { } public JsonElement getCreateParam() { - return createParam.getJsonElement(); + if (createParam != null) + return createParam.getJsonElement(); + return null; } }