diff --git a/WordPress/src/main/java/org/wordpress/android/ui/main/MySiteFragment.java b/WordPress/src/main/java/org/wordpress/android/ui/main/MySiteFragment.java index fc024d8bfeba..78155a7697b1 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/main/MySiteFragment.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/main/MySiteFragment.java @@ -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,