Browse Source

Fixed crash

main
M66B 6 years ago
parent
commit
6a63e4e79a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/eu/faircode/email/ActivityView.java

+ 3
- 0
app/src/main/java/eu/faircode/email/ActivityView.java View File

@ -538,6 +538,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override @Override
protected void onLoaded(Bundle args, UpdateInfo info) { protected void onLoaded(Bundle args, UpdateInfo info) {
if (info == null)
return;
final Intent update = new Intent(Intent.ACTION_VIEW, Uri.parse(info.html_url)); final Intent update = new Intent(Intent.ACTION_VIEW, Uri.parse(info.html_url));
if (update.resolveActivity(getPackageManager()) != null) if (update.resolveActivity(getPackageManager()) != null)
new AlertDialog.Builder(ActivityView.this) new AlertDialog.Builder(ActivityView.this)


Loading…
Cancel
Save