mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
🐛 Fix NPE
This commit is contained in:
parent
fa679fcdbb
commit
c2a6e6560a
@ -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…
Reference in New Issue
Block a user