Problem: UDP Wraped with If Statement

Do you have a SD card in the ethernet shield's slot? That would cause this kind of problem.