mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 04:57:56 +01:00
Fix NPE in line iterator
This commit is contained in:
parent
3eaae149b7
commit
6c952efca2
1 changed files with 2 additions and 2 deletions
|
@ -62,9 +62,9 @@ class InlineVerifyExternal(
|
||||||
val verificationsOutIn = FileInputStream(verificationsOut)
|
val verificationsOutIn = FileInputStream(verificationsOut)
|
||||||
val reader = BufferedReader(InputStreamReader(verificationsOutIn))
|
val reader = BufferedReader(InputStreamReader(verificationsOutIn))
|
||||||
val verificationList: MutableList<Verification> = mutableListOf()
|
val verificationList: MutableList<Verification> = mutableListOf()
|
||||||
var line: String
|
var line: String?
|
||||||
while (reader.readLine().also { line = it } != null) {
|
while (reader.readLine().also { line = it } != null) {
|
||||||
verificationList.add(fromString(line.trim()))
|
verificationList.add(fromString(line!!.trim()))
|
||||||
}
|
}
|
||||||
|
|
||||||
return verificationList
|
return verificationList
|
||||||
|
|
Loading…
Reference in a new issue