avoid null in data, convert throwable to string