diff --git a/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt b/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt index 5d0b3745..0e23e063 100644 --- a/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt +++ b/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2021-2022 Harsh Shandilya. + * Copyright © 2021-2023 Harsh Shandilya. * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. @@ -11,7 +11,7 @@ import java.io.File object TestUtils { fun getJson(path: String): String { // Load the JSON response - val uri = javaClass.classLoader.getResource(path) + val uri = javaClass.classLoader!!.getResource(path) val file = File(uri.path) return String(file.readBytes()) }