diff options
Diffstat (limited to 'testApi')
-rw-r--r-- | testApi/src/main/kotlin/testApi/context/MockContext.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testApi/src/main/kotlin/testApi/context/MockContext.kt b/testApi/src/main/kotlin/testApi/context/MockContext.kt index d3def4dc..5236f1f4 100644 --- a/testApi/src/main/kotlin/testApi/context/MockContext.kt +++ b/testApi/src/main/kotlin/testApi/context/MockContext.kt @@ -30,7 +30,7 @@ class MockContext( kclass.constructors.single { it.parameters.isEmpty() }.call().also { it.injectContext(this) } } as T - override fun <T : Any, E : ExtensionPoint<T>> get(point: E): List<T> = extensionMap[point] as List<T> + override fun <T : Any, E : ExtensionPoint<T>> get(point: E): List<T> = extensionMap[point].orEmpty() as List<T> override fun <T : Any, E : ExtensionPoint<T>> single(point: E): T = get(point).single() |