Well giving "server = null" has solved the problem, but not because it was empty. I have always provided a server name even if I am working with my local computer. Apparently I had to give "null" if the "server == computer_name". Maybe you should fix this in your code in this way:
if (server.equals(Environment.MachineName)){
server = null;
}
I must admit that I find the Execption I got because of this issue a weird one :/
Thanks anyway for your help! :)
if (server.equals(Environment.MachineName)){
server = null;
}
I must admit that I find the Execption I got because of this issue a weird one :/
Thanks anyway for your help! :)