From 245ec90f0d61c6be3be7e74bd64146572ce37c9c Mon Sep 17 00:00:00 2001 From: Fup Duck Date: Thu, 8 Feb 2018 14:37:08 +0100 Subject: 8827 - add null check --- .../java/se/leap/bitmaskclient/AbstractProviderDetailActivity.java | 4 ++++ 1 file changed, 4 insertions(+) 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()); -- cgit v1.2.3