Skip to content

Commit

Permalink
Fix NPE in line iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed Nov 15, 2023
1 parent 3eaae14 commit 6c952ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ class InlineVerifyExternal(
val verificationsOutIn = FileInputStream(verificationsOut)
val reader = BufferedReader(InputStreamReader(verificationsOutIn))
val verificationList: MutableList<Verification> = mutableListOf()
var line: String
var line: String?
while (reader.readLine().also { line = it } != null) {
verificationList.add(fromString(line.trim()))
verificationList.add(fromString(line!!.trim()))
}

return verificationList
Expand Down

0 comments on commit 6c952ef

Please sign in to comment.