You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that both func findOnce and func findAllofem should be checking if n *html.Node is nil before proceeding with the processing.
Am I understanding this correctly?
Thanks,
Alex
The text was updated successfully, but these errors were encountered:
Yep, I think if findOnce and findAllofem return a pointer to an empty html.Node, it'll be fixed. If we just add the nil pointer check, then the next panic will happen in the Find function because it accesses the Data field.
Hello, If I try to chain
Find
andFindAll
method of non-existent tags like in the example above, I get a panic errorI believe that both
func findOnce
andfunc findAllofem
should be checking ifn *html.Node
is nil before proceeding with the processing.Am I understanding this correctly?
Thanks,
Alex
The text was updated successfully, but these errors were encountered: