diff options
author | Jason Sams <rjsams@android.com> | 2011-01-19 16:14:21 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-01-19 16:14:21 -0800 |
commit | fdc54a97ee588bbd6c981a5708050fd97f01baec (patch) | |
tree | 88a9b5701378a62b858b393f727373b91a8add18 /graphics | |
parent | 4fa3eed8e03348e2629abd539b3476a86b44135e (diff) | |
download | frameworks_base-fdc54a97ee588bbd6c981a5708050fd97f01baec.zip frameworks_base-fdc54a97ee588bbd6c981a5708050fd97f01baec.tar.gz frameworks_base-fdc54a97ee588bbd6c981a5708050fd97f01baec.tar.bz2 |
Check and propogate errors from llvm.
Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/renderscript/ScriptC.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/ScriptC.java b/graphics/java/android/renderscript/ScriptC.java index ff8f093..9445283 100644 --- a/graphics/java/android/renderscript/ScriptC.java +++ b/graphics/java/android/renderscript/ScriptC.java @@ -56,6 +56,9 @@ public class ScriptC extends Script { protected ScriptC(RenderScript rs, Resources resources, int resourceID) { super(0, rs); int id = internalCreate(rs, resources, resourceID); + if (id == 0) { + throw new RSRuntimeException("Loading of ScriptC script failed."); + } setID(id); } |