fixed NPE in soundcloud

This commit is contained in:
Ritvik Saraf 2018-12-25 19:59:03 +05:30
parent c9b938ae55
commit 646698f1ed
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public class RelatedVideosFragment extends BaseListInfoFragment<RelatedStreamInf
@Override
public void showLoading() {
super.showLoading();
headerRootLayout.setVisibility(View.INVISIBLE);
if(null != headerRootLayout) headerRootLayout.setVisibility(View.INVISIBLE);
}
@Override
@ -119,7 +119,7 @@ public class RelatedVideosFragment extends BaseListInfoFragment<RelatedStreamInf
super.handleResult(result);
headerRootLayout.setVisibility(View.VISIBLE);
if(null != headerRootLayout) headerRootLayout.setVisibility(View.VISIBLE);
AnimationUtils.slideUp(getView(),120, 96, 0.06f);
if (!result.getErrors().isEmpty()) {