It's too little information for any response. The Crash is not because of the function call but the parameter value you pass in the function.