🐛 Fix NPE

This commit is contained in:
Daniel 2024-12-02 10:05:22 +08:00
parent a66960ae60
commit 6970492034
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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)