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

Commit 89e4c715 authored by Jason Sams's avatar Jason Sams Committed by Android Git Automerger
Browse files

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

* commit '7165bd6d':
  Add check and throw for failed Intrinsic init.
parents 6d38cec1 7165bd6d
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.");
        }
    }
}