I think if you ran FindBugs on this it would tell you that when `httpsProxyHost == null`, the above code will throw a `NullPointerException`. Looks like your conditions are messed up.