You need a null check on the result of TiConvert.toString. This could return null