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){
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
- 8 years ago
- 9 years ago
Recent Discussions
- 12 hours ago
- 2 days ago