Skip to content
Snippets Groups Projects
Commit 2ad334f7 authored by Ryan Izard's avatar Ryan Izard
Browse files

Merge pull request #630 from DevFactory/staging/Null-pointers-should-not-be-dereferenced-fix-1

Fixing squid:S2259 - Null pointers should not be dereferenced
parents c0e2a377 c8b9b7bb
No related branches found
No related tags found
No related merge requests found
......@@ -197,10 +197,12 @@ public class JavaDBStorageEngine implements IStorageEngine<ByteArray, byte[]> {
update.execute();
dbConnection.commit();
} catch (SyncException e) {
dbConnection.rollback();
if(dbConnection != null)
dbConnection.rollback();
throw e;
} catch (Exception e) {
dbConnection.rollback();
if(dbConnection != null)
dbConnection.rollback();
throw new PersistException("Could not retrieve key from database",
e);
} finally {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment