avoid setgmentation fault when arrayType expr is null