Skip to content

Commit 38a4709

Browse files
committed
refactor: consider that footer types might not be present at all
Closes: #153
1 parent 7d84eaf commit 38a4709

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/kotlin/com/github/lppedd/cc/configuration/CCDefaultTokensService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ internal class CCDefaultTokensService(private val project: Project) {
168168
val footerTypes = when (val it = rootJsonObject.opt("footerTypes")) {
169169
is JSONObject -> buildFooterTypes(it)
170170
is JSONArray -> buildFooterTypesArray(it)
171+
null -> emptyMap()
171172
else -> error("Should never get here")
172173
}
173174

0 commit comments

Comments
 (0)