null pointer condition added for fast.next

corrected condition checking