Skip to content
Snippets Groups Projects
Commit c8b9b7bb authored by smisger's avatar smisger
Browse files

Fixing squid:S2259 - Null pointers should not be dereferenced

parent 57036db7
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