Commit e12f890d by eguven Committed by Oliver Woodman

Fix NPE in PlayerActivity while playing a playlist

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190787884
parent f40add52
...@@ -284,6 +284,9 @@ public class PlayerActivity extends Activity ...@@ -284,6 +284,9 @@ public class PlayerActivity extends Activity
extensions = new String[uriStrings.length]; extensions = new String[uriStrings.length];
} }
manifestFilters = intent.getParcelableArrayExtra(MANIFEST_FILTER_LIST_EXTRA); manifestFilters = intent.getParcelableArrayExtra(MANIFEST_FILTER_LIST_EXTRA);
if (manifestFilters == null) {
manifestFilters = new Parcelable[uriStrings.length];
}
} else { } else {
showToast(getString(R.string.unexpected_intent_action, action)); showToast(getString(R.string.unexpected_intent_action, action));
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment