diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index a98e22979417..509ef1e8e210 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -1047,7 +1047,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName, pLibInfo = nullptr; } - return pLibInfo ? &*pLibInfo->GetLib() : nullptr; + return pLibInfo ? pLibInfo->GetLib().get() : nullptr; }