Skip to content

Commit

Permalink
修改ConnectionManager的freeConnection方法处可能的空指针异常
Browse files Browse the repository at this point in the history
  • Loading branch information
ffpy committed Nov 25, 2017
1 parent 2fb3073 commit a07f210
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified downloads/sqlpal-0.0.2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion sqlpal/src/org/sqlpal/manager/ConnectionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ public static void requestConnection() throws SQLException {
*/
public static void freeConnection() throws SQLException {
Connection connection = usedConnections.remove(Thread.currentThread().getId());
connection.close();
if (connection != null) connection.close();
}
}

0 comments on commit a07f210

Please sign in to comment.