This content has been marked as final. Show 3 replies
You are specifying a value for urlType if and only if strUrl equals "CFA". What should the value be for all the other cases?
shaolinf wrote:Well, both the compiler and I want to know, where do you initialize this variable? As it stands urlType looks like it will only be either CHECKFORM or null, and the null isn't kosher in the Switch, I don't believe.
urlType might not have been initialized : switch(urlType)
Method-local variables are not automatically initialized. If you want it initialized to null, you need to explicitly set it so.