add missing null check

This commit is contained in:
Patric Karlström 2021-01-13 16:07:43 +01:00
parent da8ca05a38
commit b002621861

View file

@ -207,7 +207,11 @@ public class AllContentFragment extends BaseFragment implements DownloadActionLi
private void checkParams(boolean reload) { private void checkParams(boolean reload) {
Map<String, Object> params = getParams(); Map<String, Object> params = getParams();
if (params != null && params.containsKey("singleTag")) { if (params != null && params.containsKey("singleTag")) {
String tagName = params.get("singleTag").toString(); String tagName = "";
Object o = params.get("singleTag");
if (o != null) {
tagName = o.toString();
}
singleTagView = true; singleTagView = true;
tags = Arrays.asList(tagName); tags = Arrays.asList(tagName);
titleView.setText(Helper.capitalize(tagName)); titleView.setText(Helper.capitalize(tagName));