diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/X509Utils.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/X509Utils.java b/main/src/main/java/de/blinkt/openvpn/core/X509Utils.java index 4c8a226b..21a7f1ae 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/X509Utils.java +++ b/main/src/main/java/de/blinkt/openvpn/core/X509Utils.java @@ -151,14 +151,16 @@ public class X509Utils { } catch (NoSuchMethodException e) { exp =e; } catch (InvocationTargetException e) { - exp =e; + /* Ignore this. Modern Android versions do not expose this */ + exp = null; } catch (IllegalAccessException e) { exp =e; } catch (NoSuchFieldException e) { exp =e; } - if (exp!=null) + if (exp!=null) { VpnStatus.logException("Getting X509 Name from certificate", exp); + } /* Fallback if the reflection method did not work */ if(friendlyName==null) |