bug 708283 - NullPointerException in VideoPlayer on launch r=dougt
This commit is contained in:
@@ -49,6 +49,8 @@ import android.content.Intent;
|
||||
|
||||
public class VideoPlayer extends Activity
|
||||
{
|
||||
public static final String VIDEO_ACTION = "org.mozilla.gecko.PLAY_VIDEO";
|
||||
|
||||
/** Called when the activity is first created. */
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState)
|
||||
@@ -60,6 +62,8 @@ public class VideoPlayer extends Activity
|
||||
mediaController.setAnchorView(mVideoView);
|
||||
Intent intent = getIntent();
|
||||
Uri data = intent.getData();
|
||||
if (data == null)
|
||||
return;
|
||||
String spec = null;
|
||||
if ("vnd.youtube".equals(data.getScheme())) {
|
||||
String ssp = data.getSchemeSpecificPart();
|
||||
|
||||
Reference in New Issue
Block a user