Skip to content

Commit

Permalink
added null guard
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Oct 24, 2017
1 parent e579fab commit 0ad299b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public void onEventMainThread(CoreEvents.MainViewPagerScrolled event) {
@SuppressWarnings("unused")
public void onEventMainThread(UploadService.UploadErrorEvent event) {
SiteModel site = getSelectedSite();
if (site != null) {
if (site != null && event.post != null) {
if (event.post.getLocalSiteId() == site.getId()) {
UploadUtils.onPostUploadedSnackbarHandler(getActivity(),
getActivity().findViewById(R.id.coordinator), true,
Expand Down

0 comments on commit 0ad299b

Please sign in to comment.