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

* commit '6b52ca5949545dcb654672663e2187a70b04f442':
  Add check and throw for failed Intrinsic init.
This commit is contained in:
Jason Sams
2014-06-26 00:32:03 +00:00
committed by Android Git Automerger

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