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

Commit feff969e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "XmlBlock: if you want to check the result of new, you need nothrow...

Merge "XmlBlock: if you want to check the result of new, you need nothrow new." into main am: 6f766537 am: 0d02bf77

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3274312



Change-Id: Ia269752577f456650b203f28bb5f4d081f34af67
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3f16532b 0d02bf77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static jlong android_content_XmlBlock_nativeCreateParseState(JNIEnv* env, jobjec
        return 0;
    }

    ResXMLParser* st = new ResXMLParser(*osb);
    ResXMLParser* st = new(std::nothrow) ResXMLParser(*osb);
    if (st == NULL) {
        jniThrowException(env, "java/lang/OutOfMemoryError", NULL);
        return 0;