Skip to content

Commit dcb13db

Browse files
committed
Fixed crash introduced in 031ebcb
1 parent b0a391c commit dcb13db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MTA10/core/CWebCore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ void CWebCore::RequestPages ( const std::vector<SString>& pages, WebRequestCallb
330330
{
331331
// Call callback immediately if nothing has changed (all entries are most likely already on the whitelist)
332332
// There is still the possibility that all websites are blacklisted; this is not the usual case tho, so ignore for now (TODO)
333-
(*pCallback)( true, pages );
333+
if ( pCallback )
334+
(*pCallback)( true, pages );
334335
}
335336
}
336337

0 commit comments

Comments
 (0)