summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-01-19 16:14:21 -0800
committerJason Sams <rjsams@android.com>2011-01-19 16:14:21 -0800
commitfdc54a97ee588bbd6c981a5708050fd97f01baec (patch)
tree88a9b5701378a62b858b393f727373b91a8add18 /graphics
parent4fa3eed8e03348e2629abd539b3476a86b44135e (diff)
downloadframeworks_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.java3
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);
}