Merge "Handle fatal errors from calling bccRegisterSymbolCallback (if any)." into honeycomb
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 1fceb66..eecfa16 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -475,7 +475,10 @@
 
     s->mEnviroment.mIsThreadable = true;
 
-    bccRegisterSymbolCallback(s->mBccScript, symbolLookup, s);
+    if (bccRegisterSymbolCallback(s->mBccScript, symbolLookup, s) != 0) {
+        LOGE("bcc: FAILS to register symbol callback");
+        return false;
+    }
 
     if (bccReadBC(s->mBccScript,
                   resName,