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

Commit 7165bd6d authored by Jason Sams's avatar Jason Sams Committed by Gerrit Code Review
Browse files

Merge "Add check and throw for failed Intrinsic init."

parents 924ed1fa 1c8da1cc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -27,5 +27,8 @@ package android.renderscript;
public abstract class ScriptIntrinsic extends Script {
    ScriptIntrinsic(long id, RenderScript rs) {
        super(id, rs);
        if (id == 0) {
            throw new RSRuntimeException("Loading of ScriptIntrinsic failed.");
        }
    }
}