mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-09-11 09:58:53 +00:00
Fix panic when using MySQL for events storage and no table created yet
This commit is contained in:
@@ -175,7 +175,9 @@ func (e *EventListener) getDababaseHandler() (*sql.DB, error) {
|
||||
if err != nil {
|
||||
firstRun = true
|
||||
}
|
||||
rows.Close()
|
||||
if rows != nil {
|
||||
rows.Close()
|
||||
}
|
||||
}
|
||||
|
||||
// Create table on first run.
|
||||
|
Reference in New Issue
Block a user