Skip to content

Commit 1ac500a

Browse files
committed
Catch ClassNotFoundException while loading DB Driver.
1 parent b7567dc commit 1ac500a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/owasp/webgoat/session/UserDatabase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public boolean open() {
4444
} catch (SQLException e) {
4545
e.printStackTrace();
4646
return false;
47+
} catch (ClassNotFoundException e) {
48+
e.printStackTrace();
49+
return false;
4750
}
4851
return true;
4952
}

0 commit comments

Comments
 (0)