summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-04-30 04:51:43 +0200
committerArne Schwabe <arne@rfc2549.org>2012-04-30 04:51:43 +0200
commiteefb4523ca2d6cf70a27317b2ef80a121f5a1953 (patch)
tree183ef914f933dd6c57640368eff0e20ab617f868 /src/de/blinkt/openvpn/VpnProfile.java
parent44fa929579f9d801de9b62269f80310f3405ba4a (diff)
Version 0.4.4
Fix parsing of certain netmasks Fix custom Routes parsing
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java4
1 files changed, 4 insertions, 0 deletions
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<String> getCustomRoutes() {
Vector<String> cidrRoutes=new Vector<String>();
+ 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);