It causes a NullPointerException. However, I added Dharm's suggestion of checking if getProxyAuthenticator is null or not and that works (commit 467e767 below).