Skip to content

Commit

Permalink
Fix bug where comment field may be null for prospects.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Nov 19, 2015
1 parent f0e7d00 commit 883a029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/io/plaidapp/ui/DribbbleShot.java
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,8 @@ public void onClick(View v) {
likeHeart.setVisibility(View.VISIBLE);
likesCount.setVisibility(View.VISIBLE);
if (comment.liked == null) {
dribbbleApi.likedComment(shot.id, comment.id, new retrofit
.Callback<Like>() {
dribbbleApi.likedComment(shot.id, comment.id,
new retrofit.Callback<Like>() {
@Override
public void success(Like like, Response response) {
comment.liked = true;
Expand All @@ -884,7 +884,7 @@ public void failure(RetrofitError error) {
}
});
}
if (enterComment.hasFocus()) {
if (enterComment != null && enterComment.hasFocus()) {
enterComment.clearFocus();
ImeUtils.hideIme(enterComment);
}
Expand Down

0 comments on commit 883a029

Please sign in to comment.