avoid IllegalArgumentError when result string is null