Closed ben-manes closed 4 months ago
When trying to work around this a different NPE appears,
java.lang.NullPointerException: it.first must not be null
at org.jetbrains.kotlinx.lincheck.runner.ParallelThreadsRunner.run(ParallelThreadsRunner.kt:286)
at org.jetbrains.kotlinx.lincheck.strategy.managed.ManagedStrategy.runInvocation(ManagedStrategy.kt:243)
at org.jetbrains.kotlinx.lincheck.strategy.managed.modelchecking.ModelCheckingStrategy.runImpl(ModelCheckingStrategy.kt:62)
at org.jetbrains.kotlinx.lincheck.strategy.managed.ManagedStrategy.run(ManagedStrategy.kt:130)
at org.jetbrains.kotlinx.lincheck.LinChecker.run(LinChecker.kt:126)
at org.jetbrains.kotlinx.lincheck.LinChecker.checkImpl(LinChecker.kt:80)
at org.jetbrains.kotlinx.lincheck.LinChecker.checkImpl$lincheck(LinChecker.kt:52)
at org.jetbrains.kotlinx.lincheck.LinChecker.check(LinChecker.kt:42)
This is when the build upgrades from 2.18.1 to 2.24. The hash of
null
is well defined (zero by System.identityHashCode` so I think this method should be loosened. The instrumented constructors all handle this null parameters properly.