diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-05-20 14:42:12 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-20 14:42:12 +0200 |
commit | 8a4794ada0c55b54305ac49a8850d5639b640b3c (patch) | |
tree | 510ed028d86025a553523a98167ed718dbbfc22a | |
parent | e3152fa86cda600c3d993f8ddb43273f95aaa9f0 (diff) |
- fix a backtrace from the market console
- Version 0.5.5a
-rw-r--r-- | AndroidManifest.xml | 4 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/ConfigParser.java | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9f11995f..0255e8f2 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -17,8 +17,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.blinkt.openvpn" - android:versionCode="26" - android:versionName="0.5.5" > + android:versionCode="27" + android:versionName="0.5.5a" > <uses-permission android:name="android.permission.INTERNET" /> diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java index 5e054c6d..4447eaf9 100644 --- a/src/de/blinkt/openvpn/ConfigParser.java +++ b/src/de/blinkt/openvpn/ConfigParser.java @@ -258,9 +258,13 @@ public class ConfigParser { if(route.size() >= 3) netmask = route.get(2); String net = route.get(1); - - CIDRIP cidr = new CIDRIP(net, netmask); - routeopt+=cidr.toString() + " "; + try { + CIDRIP cidr = new CIDRIP(net, netmask); + routeopt+=cidr.toString() + " "; + } catch (ArrayIndexOutOfBoundsException aioob) { + throw new ConfigParseError("Could not parse netmask of route " + netmask); + } + } np.mCustomRoutes=routeopt; } |