fix null pointer when accessing draft content type
closes sk22#734
This commit is contained in:
parent
996f0b22b9
commit
b3cab67049
|
@ -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) {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue