Crash on Settings > Add new feed

No action is specified in this scenario
This commit is contained in:
Olivier Trichet 2014-12-17 22:59:40 +01:00
parent 3b3f892419
commit f45e7ed4dc

View file

@ -98,7 +98,7 @@ public class NewFeedActivity extends ActionBarActivity {
Intent intent = getIntent();
String action = intent.getAction();
if (action.compareTo(Intent.ACTION_VIEW) == 0) {
if (action != null && action.compareTo(Intent.ACTION_VIEW) == 0) {
//String scheme = intent.getScheme();
//ContentResolver resolver = getContentResolver();