🐛 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
|
||||
}
|
||||
row := queryRow("SELECT * FROM blocks WHERE id = ?", id)
|
||||
if nil == row {
|
||||
return
|
||||
}
|
||||
ret = scanBlockRow(row)
|
||||
if nil != ret {
|
||||
putBlockCache(ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue