Skip to content

Commit

Permalink
Fix crash when resetting default sitemap and no connection is availab…
Browse files Browse the repository at this point in the history
…le. 2nd try (#1092)

Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma authored Nov 15, 2018
1 parent cd34361 commit b2e5c46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
break;
}
if (data.getBooleanExtra(PreferencesActivity.RESULT_EXTRA_SITEMAP_CLEARED, false)
&& getConnection() != null) {
&& getConnection() != null && mServerProperties != null) {
Sitemap sitemap = selectConfiguredSitemapFromList();
if (sitemap != null) {
openSitemap(sitemap);
Expand Down

0 comments on commit b2e5c46

Please sign in to comment.