diff --git a/kernel/sql/block_query.go b/kernel/sql/block_query.go index 7ba9287c6..578f4300a 100644 --- a/kernel/sql/block_query.go +++ b/kernel/sql/block_query.go @@ -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)