diff --git a/Stately/app/src/main/java/com/lloydtorres/stately/core/StatelyActivity.java b/Stately/app/src/main/java/com/lloydtorres/stately/core/StatelyActivity.java index c2221a41..f59e7487 100644 --- a/Stately/app/src/main/java/com/lloydtorres/stately/core/StatelyActivity.java +++ b/Stately/app/src/main/java/com/lloydtorres/stately/core/StatelyActivity.java @@ -244,7 +244,7 @@ private void initNavBanner() { DashHelper dashie = DashHelper.getInstance(this); - if (NightmareHelper.getIsZDayActive(this)) { + if (NightmareHelper.getIsZDayActive(this) && mNation.zombieData != null) { dashie.loadImage(NightmareHelper.getZombieBanner(mNation.zombieData.action), nationBanner, false); } else { dashie.loadImage(Nation.getBannerURL(mNation.bannerKey), nationBanner, false); diff --git a/Stately/app/src/main/java/com/lloydtorres/stately/issues/IssuesFragment.java b/Stately/app/src/main/java/com/lloydtorres/stately/issues/IssuesFragment.java index cae4024a..e243605e 100644 --- a/Stately/app/src/main/java/com/lloydtorres/stately/issues/IssuesFragment.java +++ b/Stately/app/src/main/java/com/lloydtorres/stately/issues/IssuesFragment.java @@ -156,7 +156,7 @@ private void processIssues(View v, IssueFullHolder holder) { issues = new ArrayList(); // Add zombie card if Z-Day is active - if (NightmareHelper.getIsZDayActive(getContext())) { + if (NightmareHelper.getIsZDayActive(getContext()) && holder.zombieData != null) { issues.add(holder.zombieData); } diff --git a/Stately/app/src/main/java/com/lloydtorres/stately/nation/NationFragment.java b/Stately/app/src/main/java/com/lloydtorres/stately/nation/NationFragment.java index 553c8970..c63efc9d 100644 --- a/Stately/app/src/main/java/com/lloydtorres/stately/nation/NationFragment.java +++ b/Stately/app/src/main/java/com/lloydtorres/stately/nation/NationFragment.java @@ -202,7 +202,7 @@ public void initNationData(View view) { DashHelper dashie = DashHelper.getInstance(getContext()); - if (NightmareHelper.getIsZDayActive(getContext())) { + if (NightmareHelper.getIsZDayActive(getContext()) && mNation.zombieData != null) { dashie.loadImage(NightmareHelper.getZombieBanner(mNation.zombieData.action), nationBanner, false); } else { dashie.loadImage(Nation.getBannerURL(mNation.bannerKey), nationBanner, false); diff --git a/Stately/app/src/main/java/com/lloydtorres/stately/zombie/ZombieControlActivity.java b/Stately/app/src/main/java/com/lloydtorres/stately/zombie/ZombieControlActivity.java index bc64dfed..d086852c 100644 --- a/Stately/app/src/main/java/com/lloydtorres/stately/zombie/ZombieControlActivity.java +++ b/Stately/app/src/main/java/com/lloydtorres/stately/zombie/ZombieControlActivity.java @@ -275,7 +275,7 @@ private void initRecycler() { * Either shows the zombie decision dialog or a message saying that no actions are available. */ public void showDecisionDialog() { - if (isFinishing()) { + if (isFinishing() || userData.zombieData == null) { return; }