summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorWill Szumski <will@cowboycoders.org>2016-11-24 18:38:56 +0000
committeryvesf <yvesf-git@xapek.org>2016-11-28 19:53:44 +0100
commitae6bf9d84cc762185ab23678ebe1a18ffc7dc630 (patch)
tree28f1bc90cb5d829f8d114c7bd8aefbf90545d889 /src/main/java
parent38050063b38b451d5bba562c500e7a8303370f39 (diff)
downloadandiodine-ae6bf9d84cc762185ab23678ebe1a18ffc7dc630.tar.gz
andiodine-ae6bf9d84cc762185ab23678ebe1a18ffc7dc630.zip
prevent NullPointerException when configurationId is invalid
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/xapek/andiodine/IodineVpnService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/xapek/andiodine/IodineVpnService.java b/src/main/java/org/xapek/andiodine/IodineVpnService.java
index 5e1c6f5..e3c7858 100644
--- a/src/main/java/org/xapek/andiodine/IodineVpnService.java
+++ b/src/main/java/org/xapek/andiodine/IodineVpnService.java
@@ -114,7 +114,7 @@ public class IodineVpnService extends VpnService implements Runnable {
mConfiguration = configDatabase.selectById(configurationId);
if (mConfiguration == null) {
- setStatus(ACTION_STATUS_ERROR, mConfiguration.getId(),
+ setStatus(ACTION_STATUS_ERROR, configurationId,
getString(R.string.vpnservice_error_configuration_incomplete));
return;
}