Skip to content

Commit 1106663

Browse files
committed
fix
1 parent 81edb42 commit 1106663

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/kotlin/com/emberjs/hbs/linter/ember-template-lint/TemplateLintConfiguration.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ class TemplateLintConfiguration(project: Project) : JSLinterConfiguration<Templa
1616
override fun loadPrivateSettings(state: TemplateLintState): TemplateLintState {
1717
this.myPackage.readOrDetect()
1818

19+
val constantPackage = this.myPackage.getPackage().constantPackage
20+
21+
if (constantPackage == null) {
22+
return defaultState
23+
}
24+
1925
return state.copy(
2026
myInterpreterRef = this.myPackage.interpreter,
21-
myTemplateLintPackage = this.myPackage.getPackage().constantPackage
27+
myTemplateLintPackage = constantPackage
2228
)
2329
}
2430

0 commit comments

Comments
 (0)