cid#1557158 Unguarded read

Change-Id: If749fd6fd232beaa44162956bd4f1e992d8e976d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173430
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-09-16 09:07:08 +01:00
parent acbbf33d67
commit 344945158b

View file

@ -210,11 +210,13 @@ public class _XRowLocate extends MultiMethodTest {
boolean result = true ;
try {
int hash1 = oObj.hashBookmark(bookmark1) ;
int hash2 = oObj.hashBookmark(bookmark2) ;
log.println("1st hash = " + hash1 + ", 2nd = " + hash2) ;
synchronized (oObj) {
int hash1 = oObj.hashBookmark(bookmark1) ;
int hash2 = oObj.hashBookmark(bookmark2) ;
log.println("1st hash = " + hash1 + ", 2nd = " + hash2) ;
result = hash1 != hash2 ;
result = hash1 != hash2 ;
}
} catch (SQLException e) {
log.println("Exception occurred :" + e) ;
result = false ;