mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🐛 Fix a npe
This commit is contained in:
parent
126e8cec82
commit
e3cce8b58b
1 changed files with 4 additions and 0 deletions
|
@ -221,6 +221,10 @@ func (value *Value) IsEdited() bool {
|
|||
}
|
||||
|
||||
func (value *Value) IsEmpty() bool {
|
||||
if nil == value {
|
||||
return true
|
||||
}
|
||||
|
||||
switch value.Type {
|
||||
case KeyTypeBlock:
|
||||
if nil == value.Block {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue