Mercurial > 510Connectbot
diff src/com/five_ten_sg/connectbot/transport/TransportFactory.java @ 112:77ac18bc1b2f
cleanup java formatting
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 18 Jun 2014 13:03:01 -0700 |
parents | b39bcf616a6f |
children |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TransportFactory.java Wed Jun 18 13:00:19 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TransportFactory.java Wed Jun 18 13:03:01 2014 -0700 @@ -68,7 +68,9 @@ "Attempting to discover URI for protocol=%s on input=%s", protocol, input)); AbsTransport t = getTransport(protocol); + if (t == null) return null; + return t.getUri(input); } @@ -85,7 +87,9 @@ public static boolean canForwardPorts(String protocol) { AbsTransport t = getTransport(protocol); + if (t == null) return false; + return t.canForwardPorts(); } @@ -96,7 +100,9 @@ */ public static String getFormatHint(String protocol, Context context) { AbsTransport t = getTransport(protocol); + if (t == null) return "???"; + return t.getFormatHint(context); }