Unquote Project Help

If someone could help identify why this keeps crashing I’d really appreciate it.
The issue seems to be with the displayQuestionsRemaining remaining, but I’m not sure if its that, or one of the other bits of code that it runs off of.
if I turn the lines calling the displayQuestionsRemaining into comments it fixes the issue.

package com.example.unquotegame;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {

int currentQuestionIndex;
int totalCorrect;
int totalQuestions;
ArrayList<Question> questions;

// TODO 3-A: Declare View member variables
ImageView questionImageView;
TextView questionTextView;
TextView numQuestionsLeftTextView;
TextView questionsRemainingView;
Button submitButton;
Button buttonAnswer0;
Button buttonAnswer1;
Button buttonAnswer2;
Button buttonAnswer3;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    getSupportActionBar().setDisplayShowHomeEnabled(true);
    getSupportActionBar().setLogo(R.drawable.ic_unquote_icon);
    getSupportActionBar().setDisplayUseLogoEnabled(true);
    getSupportActionBar().setElevation(0);

    setContentView(R.layout.activity_main);

    questionImageView = findViewById(R.id.questionImage);
    questionTextView = findViewById(R.id.questionText);
    questionsRemainingView = findViewById(R.id.questionsRemaining);
    submitButton = findViewById(R.id.submitButton);
    buttonAnswer0 = findViewById(R.id.buttonAnswer0);
    buttonAnswer1 = findViewById(R.id.buttonAnswer1);
    buttonAnswer2 = findViewById(R.id.buttonAnswer2);
    buttonAnswer3 = findViewById(R.id.buttonAnswer3);

    // TODO 4-E: set onClickListener for each answer Button

    // TODO 5-A: set onClickListener for the submit answer Button

    startNewGame();
}

// TODO 3-F: displayQuestion(com.example.unquotegame.Question question) {...}

    public void displayQuestion(Question question){
        questionImageView.setImageResource(question.imageId);
        questionTextView.setText(question.questionText);
        buttonAnswer0.setText(question.answer0);
        buttonAnswer1.setText(question.answer1);
        buttonAnswer2.setText(question.answer2);
        buttonAnswer3.setText(question.answer3);

    }
// TODO 3-C: displayQuestionsRemaining(int questionRemaining) {...}

public void displayQuestionsRemaining(int numQuestionsLeft){
    numQuestionsLeft = totalQuestions;
    String questionsLeftInGame = String.valueOf(numQuestionsLeft);
    numQuestionsLeftTextView.setText(questionsLeftInGame);

}
// TODO 4-A: onAnswerSelected(int answerSelected) {...}

void onAnswerSubmission() {
    Question currentQuestion = getCurrentQuestion();
    if (currentQuestion.isCorrect()) {
        totalCorrect = totalCorrect + 1;
    }
    questions.remove(currentQuestion);

    // TODO 3-D.i: Uncomment the line below after implementing displayQuestionsRemaining(int)
    displayQuestionsRemaining(questions.size());

    if (questions.size() == 0) {
        String gameOverMessage = getGameOverMessage(totalCorrect, totalQuestions);

        // TODO 5-D: Show a popup instead
        System.out.println(gameOverMessage);
    } else {
        chooseNewQuestion();

        // TODO 3-H.i: uncomment after implementing displayQuestion(com.example.unquotegame.Question)
        displayQuestion(getCurrentQuestion());
    }
}

void startNewGame() {
    questions = new ArrayList<>();

//R.drawable.name_of_drawable

    Question question0 = new Question(R.drawable.img_quote_0, "Pretty good advice, and perhaps a scientist did say it... Who actually did?", "Albert Einstein", "Isaac Newton", "Rita Mae Brown", "Rosalind Franklin", 2);
    Question question1 = new Question(R.drawable.img_quote_1, "Was honest Abe honestly quoted? Who authored this pithy bit of wisdom?", "Edward Stieglitz", "Maya Angelou", "Abraham Lincoln", "Ralph Waldo Emerson", 0);
    Question question2 = new Question(R.drawable.img_quote_2, "Easy advice to read, difficult advice to follow... who actually said it?", "Martin Luther King Jr", "Mother Theresa", "Fred Rogers", "Oprah Winfrey", 1);
    Question question3 = new Question(R.drawable.img_quote_3, "Insanely inspiring, insanely incorrect (maybe). Who is the true source of this inspiration?", "Nelson Mandela", "Harriet Tubman", "Mahatma Gandhi", "Nicholas Klein", 3);
    Question question4 = new Question(R.drawable.img_quote_4, "A peace worth striving for... who actually reminded us of this?", "Matala Yousafzai", "Martin Luther King Jr", "Liu Xiaobo", "Dalai Lama", 1);
    Question question5 = new Question(R.drawable.img_quote_5, "Unfortunately, true - who actually reminded us of this?", "Laurel Thatcher Ulrich", "Eleanor Roosevelt", "Marilyn Monroe", "Queen Victoria", 0);

    questions.add(question0);
    questions.add(question1);
    questions.add(question2);
    questions.add(question3);
    questions.add(question4);
    questions.add(question5);

    totalCorrect = 0;
    totalQuestions = questions.size();

    Question firstQuestion = chooseNewQuestion();

    // TODO 3-D.ii: Uncomment the line below after implementing displayQuestionsRemaining(int)
   displayQuestionsRemaining(questions.size());

    // TODO 3-H.ii: Uncomment after implementing displayQuestion(com.example.unquotegame.Question)
     displayQuestion(firstQuestion);
}

Question chooseNewQuestion() {
    int newQuestionIndex = generateRandomNumber(questions.size());
    currentQuestionIndex = newQuestionIndex;
    return questions.get(currentQuestionIndex);
}

int generateRandomNumber(int max) {
    double randomNumber = Math.random();
    double result = max * randomNumber;
    return (int) result;
}

Question getCurrentQuestion() {
    Question currentQuestion = questions.get(currentQuestionIndex);
    return currentQuestion;
}

String getGameOverMessage(int totalCorrect, int totalQuestions) {
    if (totalCorrect == totalQuestions) {
        return "You got all " + totalQuestions + " right! You won!";
    } else {
        return "You got " + totalCorrect + " right out of " + totalQuestions + ". Better luck next time!";
    }
}

}