mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 11:22:12 +00:00
Fix: Avoid nullability exception
This commit is contained in:
parent
673b098131
commit
3d4ff47a32
@ -105,7 +105,7 @@ class RootInstaller(context: Context) : BaseInstaller(context) {
|
||||
val found = sessionIdMatcher.find()
|
||||
|
||||
if (found) {
|
||||
val sessionId = sessionIdMatcher.group(1).toInt()
|
||||
val sessionId = sessionIdMatcher?.group(1)?.toInt() ?: -1
|
||||
Shell.su(cacheFile.sessionInstallWrite(sessionId))
|
||||
.submit {
|
||||
Shell.su(sessionInstallCommit(sessionId)).exec()
|
||||
|
Loading…
x
Reference in New Issue
Block a user