summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorFup Duck <fupduck@sacknagel.com>2018-02-08 14:37:08 +0100
committerFup Duck <fupduck@sacknagel.com>2018-02-08 14:37:08 +0100
commit245ec90f0d61c6be3be7e74bd64146572ce37c9c (patch)
tree9fc8d0fc0fa84da95c2b32f708c8a1b2e70b2e8a /app/src/main
parent8f7f89e757f0ac8f7a2da54d2001bb2ff88269cc (diff)
8827 - add null check
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/AbstractProviderDetailActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/AbstractProviderDetailActivity.java b/app/src/main/java/se/leap/bitmaskclient/AbstractProviderDetailActivity.java
index cdb314aa..9826b89b 100644
--- a/app/src/main/java/se/leap/bitmaskclient/AbstractProviderDetailActivity.java
+++ b/app/src/main/java/se/leap/bitmaskclient/AbstractProviderDetailActivity.java
@@ -35,6 +35,10 @@ public abstract class AbstractProviderDetailActivity extends ConfigWizardBaseAct
provider = getIntent().getParcelableExtra(PROVIDER_KEY);
setContentView(R.layout.a_provider_detail);
+ if (provider == null) {
+ return;
+ }
+
setProviderHeaderText(provider.getName());
description.setText(provider.getDescription());