Fix potential crash
This commit is contained in:
parent
d78b85ff38
commit
ef1fb8ff4f
|
@ -128,7 +128,9 @@ public class LoginActivity extends BaseActivity {
|
||||||
if (b != null) {
|
if (b != null) {
|
||||||
autofilledInstance = b.getString("instance", null);
|
autofilledInstance = b.getString("instance", null);
|
||||||
social = b.getString("social", null);
|
social = b.getString("social", null);
|
||||||
socialNetwork = Helper.setSoftware(instanceNodeInfo.getName(), false);
|
if( instanceNodeInfo != null) {
|
||||||
|
socialNetwork = Helper.setSoftware(instanceNodeInfo.getName(), false);
|
||||||
|
}
|
||||||
admin = b.getBoolean("admin", false);
|
admin = b.getBoolean("admin", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -711,8 +713,6 @@ public class LoginActivity extends BaseActivity {
|
||||||
startActivity(i);
|
startActivity(i);
|
||||||
} else {
|
} else {
|
||||||
String url = redirectUserToAuthorizeAndLogin(getApplicationContext(), socialNetwork, client_id, instance);
|
String url = redirectUserToAuthorizeAndLogin(getApplicationContext(), socialNetwork, client_id, instance);
|
||||||
|
|
||||||
|
|
||||||
Helper.openBrowser(LoginActivity.this, url);
|
Helper.openBrowser(LoginActivity.this, url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue