in PostAdapter.java class , when we do
Elements elements =document.select("img");
then,
elements.get(0).attr("src") ,will give " java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 " if there is not any image in any post.
we have to use try catch statement to handle the exception .