Commit ef779dd9 authored by Sajal Narang's avatar Sajal Narang

Fix app crash in absence of link

parent e8b8de9d
......@@ -104,7 +104,9 @@ public class NewsFragment extends BaseFragment {
final NewsAdapter newsAdapter = new NewsAdapter(result, new ItemClickListener() {
@Override
public void onItemClick(View v, int position) {
openWebURL(result.get(position).getLink());
String link = result.get(position).getLink();
if (link != null && !link.isEmpty())
openWebURL(link);
}
});
getActivityBuffer().safely(new ActivityBuffer.IRunnable() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment