修改登录空指针问题
Fatal Exception: java.lang.RuntimeException java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
This commit is contained in:
parent
859f54b1e1
commit
3549c25cca
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user