I'm making a basic chat program as a thesis and I've run into this problem.
As you can see on the picture, it gives me an unassigned variable error at line 107, but it works perfectly fine afterwards (like at line 125). The switch case always starts with case 1, in which I create a new UserLogin form called login. After that it decides wether it should go to case 2 or 3. Neither of them has any unassigned variable error except the line 107 one. I don't really have a clue as to why is this happening.