Android - EditText gives IndexOutOfBounds Exception while using textAllCaps
I'm trying to create a very simple registration page using a relative layout. This registration page is linked to a fragment called RegistrationFragment. I have five EditText fields for this layout: name, phone number, email, password, and confirm password. For some reason, I can enter text into password and confirm password, but whenever I try to enter any text into the other fields, they immediately crash the application with an IndexOutOfBounds Exception. Here's the full stack trace: java.lang.IndexOutOfBoundsException at android.graphics.Paint.getTextRunAdvances(Paint.java:1879) at android