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

Commit 1d6702f5 authored by Gerry Fan's avatar Gerry Fan Committed by android-build-merger
Browse files

Merge "Fix unexpected exception from MediaHTTPService" am: c69ea95f

am: 5de0f990

Change-Id: I7c9e1c293646e4f6ec134935185953cf93e935f1
parents 5f863937 5de0f990
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -42,11 +42,11 @@ sp<IMediaHTTPService> CreateHTTPServiceInCurrentJavaContext() {
            env, env->FindClass("android/media/MediaHTTPService"));
    CHECK(clazz.get() != NULL);

    jmethodID constructID = env->GetMethodID(clazz.get(), "<init>", "()V");
    jmethodID constructID = env->GetMethodID(clazz.get(), "<init>", "(Ljava/util/List;)V");
    CHECK(constructID != NULL);

    ScopedLocalRef<jobject> httpServiceObj(
            env, env->NewObject(clazz.get(), constructID));
            env, env->NewObject(clazz.get(), constructID, NULL));

    sp<IMediaHTTPService> httpService;
    if (httpServiceObj.get() != NULL) {