Forum Discussion
Could the problem be that calling SetText with null as an argument causes weird behaviour? The reason I'm asking is because line 4 in your screenshot will never evaluate to true. So, if userName or userPassword are null they will never be set to the supervisor login information you defined. What you want line 4 to look like is:
if(userName == null || userPassword == null){
- tristaanogre7 years agoEsteemed Contributor
SanderK wrote:
Could the problem be that calling SetText with null as an argument causes weird behaviour? The reason I'm asking is because line 4 in your screenshot will never evaluate to true. So, if userName or userPassword are null they will never be set to the supervisor login information you defined. What you want line 4 to look like is:
if(userName == null || userPassword == null){
Good catch, SanderK
More correct code would be
if ((userName == null)||(userPassword == null))
That way it doesn't try to evaluating null || userPassword.
Related Content
Recent Discussions
- 3 hours agoashly