Skip to content

Commit

Permalink
NullPointerException fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rszturc committed Jan 7, 2016
1 parent 34b98a0 commit 1a3e4e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
catch (Exception e) {
exception = e;
try {
connection.rollback();
if (connection != null)
connection.rollback();
}
catch (SQLException x) {
// Do nothing...
Expand Down

0 comments on commit 1a3e4e2

Please sign in to comment.