In a linked list, if there is no cycle, fast will reach null. Check for null before dereferencing. If you do not, you will crash when trying to access null.next. If or , you cannot move fast two steps.
Return null immediately. The list ends, so there is no cycle. This differs from pure functional graphs where every node has a successor. Linked lists can end, functional graphs cannot. Handle this edge case explicitly.