Skip to content

How check an object exist or not #27

Open
@Eghbalii

Description

@Eghbalii

I have problem with this example code:
htmlquery.Find(doc, //tbody/tr//td/div[1]/@title)
and get this error:
invalid memory address or nil pointer dereference....
which is true, but I want to manage it to not stop the process and just ignore and pass through it. or before check for find be sure that is exist.
any solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions