fix null pointer when accessing draft content type

closes sk22#734
This commit is contained in:
sk 2023-07-20 23:43:46 +02:00
parent 996f0b22b9
commit b3cab67049
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
} else if (getArguments().containsKey("sourceContentType")) {
try {
String val = getArguments().getString("sourceContentType");
contentType = val == null ? null : ContentType.valueOf(val);
if (val != null) contentType = ContentType.valueOf(val);
} catch (IllegalArgumentException ignored) {}
}