🎨 fix GsonBuilder singleton NPE
This commit is contained in:
@@ -34,7 +34,7 @@ public class WxMaGsonBuilder {
|
||||
|
||||
public static Gson create() {
|
||||
if (Objects.isNull(GSON_INSTANCE)) {
|
||||
synchronized (GSON_INSTANCE) {
|
||||
synchronized (INSTANCE) {
|
||||
if (Objects.isNull(GSON_INSTANCE)) {
|
||||
GSON_INSTANCE = INSTANCE.create();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user