From 65aecefef1165d5fbdede51a21d045f787f70da2 Mon Sep 17 00:00:00 2001 From: Sam Steele Date: Wed, 11 Oct 2017 10:03:34 -0400 Subject: [PATCH] Fix a crash --- .idea/misc.xml | 2 +- src/com/irccloud/android/fragment/WhoWasFragment.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 75dac5029..396387992 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -24,7 +24,7 @@ - + diff --git a/src/com/irccloud/android/fragment/WhoWasFragment.java b/src/com/irccloud/android/fragment/WhoWasFragment.java index d53baaa22..35172af25 100644 --- a/src/com/irccloud/android/fragment/WhoWasFragment.java +++ b/src/com/irccloud/android/fragment/WhoWasFragment.java @@ -93,7 +93,11 @@ public void onBindViewHolder(ViewHolder holder, final int position) { row.setLastconnected(node.get("last_seen").asText()); else row.setLastconnected(""); - row.setConnectedvia(node.get("ircserver").asText()); + if(node.has("ircserver")) { + row.setConnectedvia(node.get("ircserver").asText()); + } else { + row.setConnectedvia(""); + } if(node.has("connecting_from")) { row.setInfo(node.get("connecting_from").asText()); } else {