Revision 9c74202f src/com/rackspace/cloud/loadbalancer/api/client/ProtocolManager.java

b/src/com/rackspace/cloud/loadbalancer/api/client/ProtocolManager.java
42 42
		} else if(authServer.equals(Preferences.COUNTRY_UK_AUTH_SERVER) || authServer.equals(Preferences.COUNTRY_UK_AUTH_SERVER_V2)){
43 43
			url = Account.getLoadBalancerLONUrl() + Account.getAccount().getAccountId() + "/loadbalancers/protocols.xml";
44 44
		}
45
		HttpGet get = new HttpGet(url);
46 45
		ArrayList<Protocol> protocols = new ArrayList<Protocol>();
46
		if(url!=null){
47
		HttpGet get = new HttpGet(url);
48
		
47 49
		
48 50
		get.addHeader("X-Auth-Token", Account.getAccount().getAuthToken());
51
		
49 52
		try {			
50 53
			HttpResponse resp = httpclient.execute(get);
51 54
		    BasicResponseHandler responseHandler = new BasicResponseHandler();
......
75 78
			e.printStackTrace();
76 79
			// we'll end up with an empty list; that's good enough
77 80
		}
78
		
81
		catch(IllegalStateException e){}
82
		}
79 83
		return protocols;
80 84
	}
81 85

  

Also available in: Unified diff