modify runtime null pointer check for parstree and ast