Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a8a0f0b authored by c_sridur's avatar c_sridur Committed by Ricardo Cerqueira
Browse files

frameworks/base: Fix Null-Pointer exception for local WV content.

-When local WV contents are played ,scheme is null
 and null-pointer exception is seen.

-Fix is to add null check for scheme.

Change-Id: I0e56f9d324498fd28bc02030bcffb8e5d6363a17
-CRs-fixed: 716596
parent dfb8ec4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -407,7 +407,7 @@ public class VideoView extends SurfaceView
    private boolean isHTTPStreaming(Uri mUri) {
        if (mUri != null) {
            String scheme = mUri.getScheme();
            if (scheme.equals("http") || scheme.equals("https")) {
            if ((scheme != null) && (scheme.equals("http") || scheme.equals("https"))) {
                String path = mUri.getPath();
                if (path == null || path.endsWith(".m3u8") || path.endsWith(".m3u")
                        || path.endsWith(".mpd")) {