We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306474d commit 8b8e2f0Copy full SHA for 8b8e2f0
model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/CLTree.kt
@@ -257,7 +257,8 @@ class CLTree : ITree, IBulkTree {
257
}
258
259
override fun setConcept(nodeId: Long, concept: IConceptReference?): ITree {
260
- val node = checkNotNull(resolveElement(nodeId)) { "nodeId could not be resolved. id=$nodeId" }
+ // manually throw NullPointerException for consistency, should be replaced for all methods in the future.
261
+ val node = resolveElement(nodeId) ?: throw NullPointerException("nodeId could not be resolved. id=$nodeId")
262
val newData = create(
263
node.id,
264
concept?.getUID(),
0 commit comments