Skip to content

Commit 676070d

Browse files
author
Jake Ginnivan
committed
Trying to track down this null reference exeception
1 parent ea018b5 commit 676070d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TestStack.White/AutomationElementSearch/AutomationElementFinder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Collections.Generic;
23
using System.Linq;
34
using System.Windows.Automation;
@@ -14,6 +15,7 @@ public class AutomationElementFinder
1415

1516
public AutomationElementFinder(AutomationElement automationElement)
1617
{
18+
if (automationElement == null) throw new ArgumentNullException("automationElement");
1719
this.automationElement = automationElement;
1820
}
1921

0 commit comments

Comments
 (0)