Skip to content

Commit

Permalink
Merge pull request #3524 from wordpress-mobile/issue/3520-null-or-emp…
Browse files Browse the repository at this point in the history
…ty-theme-id

Fixing null or empty theme id
  • Loading branch information
maxme committed Dec 16, 2015
2 parents 0aeb3fe + 28e21de commit 76303db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private void startWebActivity(String themeId, ThemeWebActivity.ThemeWebActivityT
String toastText = getString(R.string.no_network_message);

if (NetworkUtils.isNetworkAvailable(this)) {
if (mCurrentTheme != null) {
if (mCurrentTheme != null && (themeId != null || !themeId.isEmpty())) {
boolean isCurrentTheme = mCurrentTheme.getId().equals(themeId);
Map<String, Object> themeProperties = new HashMap<>();
themeProperties.put(THEME_ID, themeId);
Expand Down

0 comments on commit 76303db

Please sign in to comment.