From eefb4523ca2d6cf70a27317b2ef80a121f5a1953 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 30 Apr 2012 04:51:43 +0200 Subject: Version 0.4.4 Fix parsing of certain netmasks Fix custom Routes parsing --- src/de/blinkt/openvpn/VpnProfile.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/de/blinkt/openvpn/VpnProfile.java') diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index 4028f3d0..a1b7a06f 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -300,6 +300,10 @@ public class VpnProfile implements Serializable{ private Collection getCustomRoutes() { Vector cidrRoutes=new Vector(); + if(mCustomRoutes==null) { + // No routes set, return empty vector + return cidrRoutes; + } for(String route:mCustomRoutes.split("[\n \t]")) { if(!route.equals("")) { String cidrroute = cidrToIPAndNetmask(route); -- cgit v1.2.3