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 825b853 commit 9090cd7Copy full SHA for 9090cd7
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/GenerateTestsDialogWindow.kt
@@ -1016,8 +1016,13 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
1016
val mockMakerPath = "$entryPath/$MOCKITO_EXTENSIONS_FOLDER/$MOCKITO_MOCKMAKER_FILE_NAME".toPath()
1017
if (!Files.exists(mockMakerPath)) return false
1018
1019
- val fileLines = Files.readAllLines(mockMakerPath)
1020
- fileLines.singleOrNull() == MOCKITO_EXTENSIONS_FILE_CONTENT
+ try {
+ val fileLines = Files.readAllLines(mockMakerPath)
1021
+ fileLines.singleOrNull() == MOCKITO_EXTENSIONS_FILE_CONTENT
1022
+ } catch (e: java.io.IOException) {
1023
+ return false
1024
+ }
1025
+
1026
}
1027
1028
0 commit comments