Skip to content

Commit

Permalink
fix: Fixed rare crash in audio session data parser
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Jul 22, 2023
1 parent e8a0f51 commit dc9cd69
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ object AudioFlingerServiceDumpUtils {
30 -> {
val match = tableBodyRegex30.find(s)
if(match != null){
val sid = match.groups[1]?.value?.toInt()
val pid = match.groups[3]?.value?.toInt()
val uid = match.groups[4]?.value?.toInt()
val sid = match.groups[1]?.value?.toIntOrNull()
val pid = match.groups[3]?.value?.toIntOrNull()
val uid = match.groups[4]?.value?.toIntOrNull()
if(sid != null && pid != null)
{
dataset.add(Dataset(sid, pid, uid))
Expand Down

0 comments on commit dc9cd69

Please sign in to comment.