mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Prevent crash
This commit is contained in:
parent
0c30b92b9e
commit
e58885cf57
1 changed files with 4 additions and 2 deletions
|
@ -6652,11 +6652,13 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
// https://autocrypt.org/level1.html#the-autocrypt-header
|
||||
Map<String, String> kv = MessageHelper.getKeyValues(message.autocrypt);
|
||||
for (String key : kv.keySet()) {
|
||||
String value = kv.get(key).toLowerCase(Locale.ROOT);
|
||||
String value = kv.get(key);
|
||||
Log.i("Autocrypt " + key + "=" + value);
|
||||
if (value == null)
|
||||
continue;
|
||||
switch (key) {
|
||||
case "addr":
|
||||
addr = value;
|
||||
addr = value.toLowerCase(Locale.ROOT);
|
||||
break;
|
||||
case "prefer-encrypt":
|
||||
mutual = value.trim().toLowerCase(Locale.ROOT).equals("mutual");
|
||||
|
|
Loading…
Reference in a new issue