LogScreen: add null check

This commit is contained in:
MM20 2023-01-16 17:51:13 +01:00
parent 64cc07bef9
commit 6f78718c12
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -56,7 +56,7 @@ fun LogScreen() {
val inputStream = process.inputStream.bufferedReader()
while (isActive) {
val line = try {
val line = inputStream.readLine()
val line = inputStream.readLine() ?: continue
val matcher = pattern.matcher(line)
if (matcher.matches()) {
FormattedLogcatLine(