So, does this have something to do with your first post or is this a completely different question? If it is a completely new question, then next time please just post it in a new topic instead of appending it to an existing topic as a reply.
Please UseCodeTags when you post source code - I've added them for you in your post above.
The code you posted does not seem to have an infinite loop. You could get an infinite recursive loop if you'd have one method that calls another, that again calls the one, that again calls the other, ... but I don't see that in the two methods you posted.
Also, the code you posted doesn't even compile. Lines 4 and 5 both contain a return statement. The compiler will complain about unreachable code in line 5 when you try to compile this. Please PostRealCode so that we can really see what's happening and what the problem might be.