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

Commit 9be34d76 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

am: 1d6702f5

Change-Id: I021d309c9bfc83983a409c40f9a786ae9cfedb3c
parents c5be8b20 1d6702f5
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) {