Merge "[RenderScript] Fail with Exception from validateObjectIsPrimitiveArray"

This commit is contained in:
Pirama Arumuga Nainar
2016-03-29 03:56:58 +00:00
committed by Gerrit Code Review

View File

@@ -142,7 +142,10 @@ public class Allocation extends BaseObj {
}
return Element.DataType.FLOAT_64;
}
return null;
throw new RSIllegalArgumentException("Parameter of type " + cmp.getSimpleName() +
"[] is not compatible with data type " + mType.mElement.mType.name() +
" of allocation");
}