add missing null check
This commit is contained in:
parent
da8ca05a38
commit
b002621861
1 changed files with 5 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue