Fix NPE
This commit is contained in:
parent
66a14d99c5
commit
c6e44104c6
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ class EnhancedFilePrinter internal constructor(
|
|||
writer.close()
|
||||
}
|
||||
cleanLogFilesIfNecessary()
|
||||
if (writer.open(folder.createFile(newFileName)!!).not()) {
|
||||
val file = folder.createFile(newFileName)
|
||||
if (file == null || writer.open(file).not()) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue