diff --git a/utbot-framework/src/main/kotlin/org/utbot/framework/process/EngineProcessMain.kt b/utbot-framework/src/main/kotlin/org/utbot/framework/process/EngineProcessMain.kt index 9f51fa7088..47dbf40cca 100644 --- a/utbot-framework/src/main/kotlin/org/utbot/framework/process/EngineProcessMain.kt +++ b/utbot-framework/src/main/kotlin/org/utbot/framework/process/EngineProcessMain.kt @@ -273,7 +273,7 @@ private fun processInitialWarnings(report: TestsGenerationReport, params: Genera } private fun destinationWarningMessage(testPackageName: String?, classUnderTestPackageName: String): String? { - return if (classUnderTestPackageName != testPackageName) { + return if (!testPackageName.isNullOrEmpty() && classUnderTestPackageName != testPackageName) { """ Warning: Destination package $testPackageName does not match package of the class $classUnderTestPackageName. This may cause unnecessary usage of reflection for protected or package-private fields and methods access.