From 93890a8bd2cce1db608b5bf63e91982c397e42c1 Mon Sep 17 00:00:00 2001 From: foxxtseng Date: Mon, 5 Oct 2015 18:01:43 +0800 Subject: [PATCH] equals statement always return false --- source/src/cn/eoe/app/view/BlogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/cn/eoe/app/view/BlogFragment.java b/source/src/cn/eoe/app/view/BlogFragment.java index dd281ce..d1f24db 100644 --- a/source/src/cn/eoe/app/view/BlogFragment.java +++ b/source/src/cn/eoe/app/view/BlogFragment.java @@ -152,7 +152,7 @@ public View getView(int position, View convertView, ViewGroup parent) { holder.short_.setText(item.getShort_content()); String url = item.getHead_image_url().replaceAll("=small", "=middle"); - if (url.equals(null) || url.equals("")) { + if (url == null || url.equals("")) { holder.img_thu.setVisibility(View.GONE); } else { holder.img_thu.setVisibility(View.VISIBLE);