From ae6bf9d84cc762185ab23678ebe1a18ffc7dc630 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 24 Nov 2016 18:38:56 +0000 Subject: prevent NullPointerException when configurationId is invalid --- src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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; } -- cgit v1.2.1