Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a78c741 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

Merge branch '2299-2581-catch-exception' into 'main'

chore: handle NumberFormatException

See merge request !134
parents 8b803f2e 36155d94
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -131,7 +131,12 @@ class SendInviteFragment : Fragment() {
            trimedResult.lastIndexOf(":") + 1,
            trimedResult.length - 1
        )
        return errorCode.toInt()

        return try {
            errorCode.toInt()
        } catch (e: NumberFormatException) {
            -1
        }
    }

    private fun handleErrorCode(intCode: Int) {