diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-02-12 00:01:13 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-02-12 00:01:13 +0100 |
commit | 99e3acbc8656509bc974a1772a6a648c829af665 (patch) | |
tree | 0e6c8a5ea9870e45586cf56a0249f7c7122a30eb /src/de/blinkt/openvpn/activities | |
parent | 71caad4182aef2230c320a0cf8576ed61954fb27 (diff) |
Bug Fixes
Diffstat (limited to 'src/de/blinkt/openvpn/activities')
-rw-r--r-- | src/de/blinkt/openvpn/activities/ConfigConverter.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/activities/ConfigConverter.java b/src/de/blinkt/openvpn/activities/ConfigConverter.java index e999fe9f..792c9796 100644 --- a/src/de/blinkt/openvpn/activities/ConfigConverter.java +++ b/src/de/blinkt/openvpn/activities/ConfigConverter.java @@ -512,7 +512,7 @@ public class ConfigConverter extends ListActivity implements FileSelectCallback try { - if (cursor.moveToFirst()) { + if (cursor!=null && cursor.moveToFirst()) { int cidx = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME); if (cidx != -1) { @@ -526,7 +526,8 @@ public class ConfigConverter extends ListActivity implements FileSelectCallback } } } finally { - cursor.close(); + if(cursor!=null) + cursor.close(); } if (possibleName != null) { possibleName = possibleName.replace(".ovpn", ""); |