From 3549c25ccac6e6570899d753d5e1b88e31dc3f7b Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 9 Feb 2023 14:15:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E9=97=AE=E9=A2=98=20Fatal=20Exception:=20jav?= =?UTF-8?q?a.lang.RuntimeException=20java.lang.NullPointerException:=20Att?= =?UTF-8?q?empt=20to=20invoke=20virtual=20method=20'boolean=20java.lang.St?= =?UTF-8?q?ring.equals(java.lang.Object)'=20on=20a=20null=20object=20refer?= =?UTF-8?q?ence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/src/main/java/com/yunbao/main/activity/EntryActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/main/src/main/java/com/yunbao/main/activity/EntryActivity.java b/main/src/main/java/com/yunbao/main/activity/EntryActivity.java index ed4935535..a14825137 100644 --- a/main/src/main/java/com/yunbao/main/activity/EntryActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/EntryActivity.java @@ -608,6 +608,7 @@ public class EntryActivity extends AppCompatActivity { private void onLoginSuccess(int code, String msg, String[] info) { Log.e("他", code + "code" + info.toString()); if (code == 0 && info.length > 0) { + JSONObject obj = JSON.parseObject(info[0]); String uid = obj.getString("id"); String token = obj.getString("token");