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")) {
|
} else if (getArguments().containsKey("sourceContentType")) {
|
||||||
try {
|
try {
|
||||||
String val = getArguments().getString("sourceContentType");
|
String val = getArguments().getString("sourceContentType");
|
||||||
contentType = val == null ? null : ContentType.valueOf(val);
|
if (val != null) contentType = ContentType.valueOf(val);
|
||||||
} catch (IllegalArgumentException ignored) {}
|
} catch (IllegalArgumentException ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue