Skip to content

cannot access parentNode when #lu_map element doesn't exists#118

Open
kurorido wants to merge 4 commits intoserp-spider:masterfrom
kurorido:master
Open

cannot access parentNode when #lu_map element doesn't exists#118
kurorido wants to merge 4 commits intoserp-spider:masterfrom
kurorido:master

Conversation

@kurorido
Copy link

@kurorido kurorido commented Jul 9, 2019

$dom->cssQuery('#lu_map', $node)->item(0) may get null. Check existences before access parent node.

kurorido added 4 commits June 18, 2019 03:30
fix issue Trying to get property 'parentNode' of non-object
add return null
id ires is not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant