| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fix potential null-dereference in PageContentStore::OnDatabaseError
The OnDatabaseError callback can potentially be called with a nullptr
stmt parameter. This can happen if one of the `db_.Execute(...)` calls
fails (example [1]). `Database::Execute()` doesn't use a `Statement`
object and therefore cannot pass a `Statement` pointer to the error
callback [2].
The null dereference was in a VLOG which fortunately is not enabled by
default. This CL removed the VLOG entirely because it is redundant with
a DVLOG already done by `Database::OnSqliteError()` [3]. This DVLOG has
the advantage of printing the SQL statement even if Database::Execute is
used.
[1] https://crgo.dev/c/c/page_content_annotations/core/page_content_store.cc;l=88;drc=10801327968664eebe6e1ef2eafb5b271bc61a7b
[2] https://crsrc.org/c/sql/database.cc;l=1716;drc=71d8f4a1071b2e13b9985b249ba1ec8e4bde8ae6
[3] https://crsrc.org/c/sql/database.cc;l=2641-2646;drc=71d8f4a1071b2e13b9985b249ba1ec8e4bde8ae6
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |