fix crash cause by string(null).