mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🐛 Fix npe
This commit is contained in:
parent
9a9392c5af
commit
120a88db4c
1 changed files with 4 additions and 0 deletions
|
|
@ -154,6 +154,10 @@ func resetDuplicateBlocksOnFileSys() {
|
||||||
boxPath := filepath.Join(util.DataDir, box.ID)
|
boxPath := filepath.Join(util.DataDir, box.ID)
|
||||||
var duplicatedTrees []*parse.Tree
|
var duplicatedTrees []*parse.Tree
|
||||||
filepath.Walk(boxPath, func(path string, info os.FileInfo, err error) error {
|
filepath.Walk(boxPath, func(path string, info os.FileInfo, err error) error {
|
||||||
|
if nil == info {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
if boxPath == path {
|
if boxPath == path {
|
||||||
// 跳过根路径(笔记本文件夹)
|
// 跳过根路径(笔记本文件夹)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue