Skip to content

Commit 12f03bc

Browse files
committed
Plugins::WebBrowser: fix null pointer
1 parent 97ca081 commit 12f03bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/WebBrowser/PasswordStore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ QVariantMap CPasswordStore::getCredentials(const QString &host)
141141
void CPasswordStore::saveCredentials(
142142
const QString &host, const QString &username, const QString &password)
143143
{
144-
if (host.isEmpty() || username.isEmpty()) return;
144+
if (host.isEmpty() || username.isEmpty() || !m_pPara) return;
145145

146146
QString szFile;
147147
szFile = RabbitCommon::CDir::Instance()->GetDirUserData()

0 commit comments

Comments
 (0)