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

Verified Commit 36155d94 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

chore: handle NumberFormatException

parent 8b803f2e
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) {