mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🐛 Fix NPE
This commit is contained in:
parent
fa679fcdbb
commit
c2a6e6560a
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ func removeDuplicateDatabaseIndex() {
|
|||
roots := sql.GetBlocks(duplicatedRootIDs)
|
||||
rootMap := map[string]*sql.Block{}
|
||||
for _, root := range roots {
|
||||
if nil == root {
|
||||
continue
|
||||
}
|
||||
rootMap[root.ID] = root
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue