diff options
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/keyimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index 1ff5cb672480..6657cb3f5fb7 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -1061,7 +1061,7 @@ OStoreDirectory ORegKey::getStoreDir() OUString ORegKey::getFullPath(OUString const & path) const { OSL_ASSERT(m_name.getLength() != 0 && path.getLength() != 0); OUStringBuffer b(m_name); - if (b.charAt(b.getLength() - 1) == '/') { + if (b.getLength() > 0 && b[b.getLength() - 1] == '/') { if (path[0] == '/') { b.append(path.getStr() + 1, path.getLength() - 1); } else { |