Skip to content

Commit 1b3ae84

Browse files
committed
Fix NPE in the ViewNodeDecorator (Fixed #304)
1 parent 0e9d079 commit 1b3ae84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/demonwav/mcdev/platform/MinecraftProjectViewNodeDecorator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MinecraftProjectViewNodeDecorator : ProjectViewNodeDecorator {
3838
return
3939
}
4040

41-
val directory = node.value
41+
val directory = node.value ?: return
4242
val module = ModuleUtilCore.findModuleForPsiElement(directory) ?: return
4343

4444
val rootManager = ModuleRootManager.getInstance(module)

0 commit comments

Comments
 (0)