Skip to content

Commit

Permalink
Fixed crash when curent_slot value was equal to null
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterZtr committed Mar 25, 2024
1 parent 6dda1fe commit 652e155
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FastbootData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ public FastbootData(string real_raw_data)

if (line[1] == "current-slot")
{
current_slot = line[2];
try
{
current_slot = line[2];
}
catch (Exception)
{
current_slot = null;
}
continue;
}

Expand Down

0 comments on commit 652e155

Please sign in to comment.