I thought the bug was that the current code doesn't throw error just like the IOS if wrong type is passed. Isn't Log.e just log the exception instead of throwing the error?