mirror of https://github.com/adamdruppe/arsd.git
prevent segfault
This commit is contained in:
parent
ed0ca4515f
commit
a53ea697bd
2
dom.d
2
dom.d
|
@ -1344,6 +1344,8 @@ class Document : FileResource {
|
||||||
|
|
||||||
///.
|
///.
|
||||||
Element findFirst(bool delegate(Element) doesItMatch) {
|
Element findFirst(bool delegate(Element) doesItMatch) {
|
||||||
|
if(root is null)
|
||||||
|
return null;
|
||||||
Element result;
|
Element result;
|
||||||
|
|
||||||
bool goThroughElement(Element e) {
|
bool goThroughElement(Element e) {
|
||||||
|
|
Loading…
Reference in New Issue