mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Fix NPE
This commit is contained in:
@@ -185,5 +185,8 @@ func queryAssetContent(query string, args ...interface{}) (*sql.Rows, error) {
|
||||
if "" == query {
|
||||
return nil, errors.New("statement is empty")
|
||||
}
|
||||
if nil == assetContentDB {
|
||||
return nil, errors.New("database is nil")
|
||||
}
|
||||
return assetContentDB.Query(query, args...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user