It's surprising how many people are intimidated by stack traces. A reaction that I regularly see when a stack trace appears on screen is panic!
"Oh my god! Something has gone wrong! There are hundreds of lines of text talking about code I don't recognize and I can't take it all in; what do I do?"
The first thing to do is to relax; stack traces have a lot of information but they are actually really friendly and helpful things. Let's modify our project to produce a stack trace and work through it. We are going to make a small change to the getDriver() method in DriverFactory to force it to always return null by using this code:
public static WebDriver getDriver() { return null; }
This is going to ...