diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-06-02 13:27:15 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-06-02 15:14:22 +0200 |
commit | f4fc81b0b3f90523e485946546bdd83f85e249f7 (patch) | |
tree | 97b2488630dd9f682d08c77afc628a30ccb8c06d /connectivity | |
parent | 63314e5114ecd32246e0dbcd3054d37f612fb407 (diff) |
hsqldb flush: protect against weak ref having expired
Change-Id: I5967271c1c154ab4cf5555d30d3812183ea2a6b7
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/hsqldb/HDriver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 4728f85ee02f..87eb271ecd1c 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -619,7 +619,8 @@ namespace connectivity try { Reference<XFlushable> xCon(i->second.second.first.get(),UNO_QUERY); - xCon->flush(); + if (xCon.is()) + xCon->flush(); } catch(Exception&) { |