mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🐛 Fix NPE
This commit is contained in:
parent
a66960ae60
commit
6970492034
1 changed files with 3 additions and 0 deletions
|
|
@ -780,6 +780,9 @@ func GetBlock(id string) (ret *Block) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
row := queryRow("SELECT * FROM blocks WHERE id = ?", id)
|
row := queryRow("SELECT * FROM blocks WHERE id = ?", id)
|
||||||
|
if nil == row {
|
||||||
|
return
|
||||||
|
}
|
||||||
ret = scanBlockRow(row)
|
ret = scanBlockRow(row)
|
||||||
if nil != ret {
|
if nil != ret {
|
||||||
putBlockCache(ret)
|
putBlockCache(ret)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue