Skip to content

Commit cf54098

Browse files
committed
fix: handle null configuration
1 parent 14cdf4e commit cf54098

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/kotlin/com/github/xepozz/mago/config/MagoSchemaHolder.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ class MagoSchemaHolder(val project: Project) {
2222
if (run) return
2323
run = true
2424

25-
val magoConfiguration = MagoProjectConfiguration
26-
.getInstance(project)
27-
.findSelectedConfiguration(project)
25+
val magoConfiguration = MagoProjectConfiguration.getInstance(project)
26+
.run { findConfigurationById(selectedConfigurationId, project) }
2827
?: return
2928

3029
ApplicationManager.getApplication().executeOnPooledThread {

0 commit comments

Comments
 (0)