diff options
author | David Tardon <dtardon@redhat.com> | 2014-04-19 19:25:39 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-04-19 22:30:19 +0200 |
commit | caa5c53e7d8725b15725c4ad0f5073463693a45f (patch) | |
tree | 4022284a715b07a8a9e57bd4cc26d1544469a58e | |
parent | 45a11701ffd18a1c616bbe7ebf36335d85db9c07 (diff) |
coverity#982450 Explicit null dereferenced
Change-Id: I7097ce6ffc86038966a2f436300f49b51ff81977
-rw-r--r-- | connectivity/source/commontools/propertyids.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/propertyids.cxx b/connectivity/source/commontools/propertyids.cxx index fb9f2d36526e..5b3d6356f26e 100644 --- a/connectivity/source/commontools/propertyids.cxx +++ b/connectivity/source/commontools/propertyids.cxx @@ -181,7 +181,7 @@ namespace dbtools case PROPERTY_ID_ACTIVE_CONNECTION: { rtl_uString_newFromAscii(&pStr,getPROPERTY_ID_ACTIVE_CONNECTION() ); break; } } m_aPropertyMap[_nIndex] = pStr; - return pStr; + return pStr ? OUString(pStr) : OUString(); } } |