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

Commit 1c8da1cc authored by Jason Sams's avatar Jason Sams
Browse files

Add check and throw for failed Intrinsic init.

Change-Id: Icd53b3edd8e887d3692e5815dc0c38cd68b7aeb1
parent 0b572896
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.");
        }
    }
}