mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
c8bbdaa008
commit
b3e435f7cd
|
@ -388,7 +388,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
|||
account.ignore_size = json.optBoolean("ignore_size", false);
|
||||
account.use_date = json.optBoolean("use_date", false);
|
||||
account.use_received = json.optBoolean("use_received", false);
|
||||
account.conditions = json.optString("conditions");
|
||||
account.conditions = json.optString("conditions", null);
|
||||
|
||||
return account;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ package eu.faircode.email;
|
|||
*/
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
@ -49,7 +50,7 @@ public class TupleAccountNetworkState {
|
|||
this.accountState = accountState;
|
||||
|
||||
this.jconditions = new JSONObject();
|
||||
if (this.accountState.conditions != null)
|
||||
if (!TextUtils.isEmpty(this.accountState.conditions))
|
||||
try {
|
||||
jconditions = new JSONObject(this.accountState.conditions);
|
||||
} catch (Throwable ex) {
|
||||
|
|
Loading…
Reference in New Issue