🎨 fix GsonBuilder singleton NPE

This commit is contained in:
徐凯旋
2022-01-12 17:26:11 +08:00
committed by GitHub
parent ee17a5ee6f
commit 0601e8fb17
5 changed files with 165 additions and 165 deletions

View File

@ -32,7 +32,7 @@ public class WxOpenGsonBuilder {
public static Gson create() {
if (Objects.isNull(GSON_INSTANCE)) {
synchronized (GSON_INSTANCE) {
synchronized (INSTANCE) {
if (Objects.isNull(GSON_INSTANCE)) {
GSON_INSTANCE = INSTANCE.create();
}