fixed a bug when a object is null can not access length