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

This commit is contained in:
Jason Sams
2014-06-26 00:13:17 +00:00
committed by Gerrit Code Review

View File

@@ -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.");
}
}
}