Skip to content

App stops working  #3

@CodeERAayush

Description

@CodeERAayush

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions