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

Commit a8868560 authored by John Reck's avatar John Reck Committed by Gerrit Code Review
Browse files

Merge "[Debug][Font] We need know which font leads to system_server crash."

parents 134ad282 61d6a90d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -105,8 +105,9 @@ static jlong Font_Builder_build(JNIEnv* env, jobject clazz, jlong builderPtr, jo
        std::move(data), std::string_view(fontPath.c_str(), fontPath.size()),
        fontPtr, fontSize, ttcIndex, builder->axes);
    if (minikinFont == nullptr) {
        jniThrowException(env, "java/lang/IllegalArgumentException",
                          "Failed to create internal object. maybe invalid font data.");
        jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException",
                             "Failed to create internal object. maybe invalid font data. filePath %s",
                             fontPath.c_str());
        return 0;
    }
    uint32_t localeListId = minikin::registerLocaleList(langTagStr.c_str());