Skip to content

Commit cc3700a

Browse files
committed
Handle nulls on source
1 parent e2d72c6 commit cc3700a

File tree

1 file changed

+1
-1
lines changed
  • server/src/main/kotlin/org/javacs/kt/externalsources

1 file changed

+1
-1
lines changed

server/src/main/kotlin/org/javacs/kt/externalsources/KlsURI.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ data class KlsURI(val fileUri: URI, val query: Map<QueryParam, String>) {
5454
get() = fileUri.schemeSpecificPart.split("!", limit = 2).get(1)
5555

5656
val source: Boolean
57-
get() = query[QueryParam.SOURCE].toBoolean()
57+
get() = query[QueryParam.SOURCE]?.toBoolean() ?: false
5858
val isCompiled: Boolean
5959
get() = fileExtension == "class"
6060

0 commit comments

Comments
 (0)