diff options
Diffstat (limited to 'rs/java')
-rw-r--r-- | rs/java/android/renderscript/ScriptIntrinsic.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsic.java b/rs/java/android/renderscript/ScriptIntrinsic.java index 8719e01..4edce84 100644 --- a/rs/java/android/renderscript/ScriptIntrinsic.java +++ b/rs/java/android/renderscript/ScriptIntrinsic.java @@ -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."); + } } } |