We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9fc3da commit 82a38d3Copy full SHA for 82a38d3
1 file changed
utbot-framework/src/main/kotlin/org/utbot/engine/Traverser.kt
@@ -1035,7 +1035,10 @@ class Traverser(
1035
* Stores information about the generic types used in the parameters of the method under test.
1036
*/
1037
private fun updateGenericTypeInfo(identityRef: IdentityRef, value: ReferenceValue) {
1038
- val callable = methodUnderTest.executable
+ // If we don't have access to methodUnderTest's jClass, the engine should not fail
1039
+ // We just won't update generic information for it
1040
+ val callable = runCatching { methodUnderTest.executable }.getOrNull() ?: return
1041
+
1042
val type = if (identityRef is ThisRef) {
1043
// TODO: for ThisRef both methods don't return parameterized type
1044
if (methodUnderTest.isConstructor) {
0 commit comments