You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "SymbolicExecution" java.lang.NullPointerException: classId.jClass.enumConstants must not be null
at org.utbot.fuzzer.providers.EnumModelProvider$generate$1.invokeSuspend(EnumModelProvider.kt:18)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)
at org.utbot.fuzzer.ModelProvider$Combined$generate$1.invokeSuspend(ModelProvider.kt:143)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)
at org.utbot.fuzzer.FuzzerKt.fuzz(Fuzzer.kt:76)
at org.utbot.fuzzer.providers.ObjectModelProvider$Companion.fuzzParameters(ObjectModelProvider.kt:173)
at org.utbot.fuzzer.providers.ObjectModelProvider$Companion.access$fuzzParameters(ObjectModelProvider.kt:145)
at org.utbot.fuzzer.providers.ObjectModelProvider$generate$1.invokeSuspend(ObjectModelProvider.kt:82)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)
at org.utbot.fuzzer.ModelProvider$Combined$generate$1.invokeSuspend(ModelProvider.kt:143)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)
at org.utbot.fuzzer.FuzzerKt.fuzz(Fuzzer.kt:76)
at org.utbot.engine.UtBotSymbolicEngine$fuzzing$2.invokeSuspend(UtBotSymbolicEngine.kt:426)
at org.utbot.engine.UtBotSymbolicEngine$fuzzing$2.invoke(UtBotSymbolicEngine.kt)
at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:61)
at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:212)
at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1$lambda$1.emit(Collect.kt:134)
at kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114)
at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114)
at org.utbot.contest.ContestKt$runGeneration$1$invokeSuspend$$inlined$bracket$lambda$1$1.invokeSuspend(Contest.kt:519)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
Additional context
Was working ok in main on 11.07.2022
The text was updated successfully, but these errors were encountered:
Co-author: volivan239
Anonymous inner classes declared for enum constants are not enums
themselves, as the necessary condition for being enums is that their
direct supertype is `java.lang.Enum` (see the JavaDoc and comments of
`java.lang.Class#isEnum` method). For these classes, `getEnumConstants`
method returns `null`.
Co-author: volivan239
Anonymous inner classes declared for enum constants are not enums
themselves, as the necessary condition for being enums is that their
direct supertype is `java.lang.Enum` (see the JavaDoc and comments of
`java.lang.Class#isEnum` method). For these classes, `getEnumConstants`
method returns `null`.
Description
ContestEstimator throws unexpected
java.lang.NullPointerException
and generates empty test class on enumsTo Reproduce
Launch contestEstimator with
methodFilter = "com.google.common.base.CaseFormat.*"
andprojectFilter = null
and 120s time limitExpected behavior
Tests generated
Actual behavior
java.lang.NullPointerException
is thrown and empty test class is generatedVisual proofs (screenshots, logs, images)
Generated test file:
From console:
Additional context
Was working ok in main on 11.07.2022
The text was updated successfully, but these errors were encountered: