avoid exception for null result