Skip to content

Commit

Permalink
Fix a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Oct 11, 2017
1 parent bc74617 commit 65aecef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/com/irccloud/android/fragment/WhoWasFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 65aecef

Please sign in to comment.