mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
🐛 Fix NPE
This commit is contained in:
parent
fa679fcdbb
commit
c2a6e6560a
@ -78,6 +78,9 @@ func removeDuplicateDatabaseIndex() {
|
|||||||
roots := sql.GetBlocks(duplicatedRootIDs)
|
roots := sql.GetBlocks(duplicatedRootIDs)
|
||||||
rootMap := map[string]*sql.Block{}
|
rootMap := map[string]*sql.Block{}
|
||||||
for _, root := range roots {
|
for _, root := range roots {
|
||||||
|
if nil == root {
|
||||||
|
continue
|
||||||
|
}
|
||||||
rootMap[root.ID] = root
|
rootMap[root.ID] = root
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user