Skip to content

Commit

Permalink
fix possible NPE issue during MySQLVersion56 check
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaos Pringouris <nprigour@gmail.com>
  • Loading branch information
nprigour committed Sep 1, 2018
1 parent b54356c commit 2fe3698
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -155,7 +155,7 @@ protected static boolean isMySqlVersion56(JDBCDataStore dataStore) {
e.printStackTrace();
} finally {
try {
if (con != null || !con.isClosed()) {
if (con != null && !con.isClosed()) {
con.close();
}
} catch (SQLException e) {
Expand Down

0 comments on commit 2fe3698

Please sign in to comment.