I am encountering a null object reference issue in my custom view. Unfortunately, I cannot reproduce the crashes even with the release APK. Some users are experiencing null object reference errors in the production environment
“setTextSize(int, float)’ on a null object reference”
Code:
sampleTextView = findViewById(R.id.sampleTextView);
sampleTextView.setTextSize(12.0f);