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

Commit 6b52ca59 authored by Jason Sams's avatar Jason Sams Committed by Android Git Automerger
Browse files

am 89e4c715: am 7165bd6d: Merge "Add check and throw for failed Intrinsic init."

* commit '89e4c715':
  Add check and throw for failed Intrinsic init.
parents 7265bc45 89e4c715
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.");
        }
    }
}