Skip to content

Commit

Permalink
Fix NPE in class initializer that makes plugin fail load
Browse files Browse the repository at this point in the history
  • Loading branch information
oowekyala committed Sep 1, 2024
1 parent 3c737d6 commit c00dcac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "com.github.oowekyala"
version = "1.12.1"
version = "1.12.2"

val IntellijVersion = "231.9011.34" // note: "since" version should be updated manually in plugin.xml
val KotlinVersion = "1.8.22"
Expand Down
2 changes: 1 addition & 1 deletion changelog.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>What's fixed:
<ul>
<li>#31 - fix various exceptions thrown when the IDE starts</li>
<li>Fix exception when plugin loads</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class JccFileStub(val file: JccFile?,
: PsiFileStubImpl<JccFile>(file), JccStub<JccFile> {

companion object {
val TYPE = StubType("JCC_FILE", JavaccLanguage.INSTANCE)
val CCC_TYPE = StubType("CCC_FILE", CongoccLanguage.INSTANCE)
val TYPE: StubType by lazy { StubType("JCC_FILE", JavaccLanguage.INSTANCE) }
val CCC_TYPE: StubType by lazy { StubType("CCC_FILE", CongoccLanguage.INSTANCE) }
}

class StubType(name: String, language: Language) : IStubFileElementType<JccFileStub>(name, language) {
Expand Down

0 comments on commit c00dcac

Please sign in to comment.