mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 03:11:34 +08:00
🐛 Fix NPE
This commit is contained in:
parent
a66960ae60
commit
6970492034
@ -780,6 +780,9 @@ func GetBlock(id string) (ret *Block) {
|
||||
return
|
||||
}
|
||||
row := queryRow("SELECT * FROM blocks WHERE id = ?", id)
|
||||
if nil == row {
|
||||
return
|
||||
}
|
||||
ret = scanBlockRow(row)
|
||||
if nil != ret {
|
||||
putBlockCache(ret)
|
||||
|
Loading…
Reference in New Issue
Block a user