Exception in thread "main" java.lang.NullPointerException in a high score template

I'm a java begginning programming student, i gets a template of high score method from my teacher, but for some reason it didn't run as expected, when i run it, it gives me this error:

Exception in thread "main" java.lang.NullPointerException
at Bomb09.HighScoreTemplates.readScores(HighScoreTemplates.java:282)
at Bomb09.HighScoreTemplates.promptScreen(HighScoreTemplates.java:232)
at Bomb09.HighScoreTemplates.main(HighScoreTemplates.java:221)

I tried to fix it or ask the teacher, but i gets no respond and i cannot solve it, the on online looks different to this, so i am not sure how to fix this error since i didn't write the code. I am first time posting question, please ask if you need more info about the project, i will post the code that was mention in the error, which are below:

//Main method for "HowManyAvg" class.
static public void main (String args [])throws IOException
{
c = new Console ();

int x=0;
int y=0;

    //Calling upon the background method
    {
        background(x,y);
    }

    //Calling upon the title page method
    {
        title();
    }

    //Calling upon the next year method
    {
        promptScreen(x,y);

    }

} // main method

//This method will prompt the user.
    public static void promptScreen(int x,int y) throws IOException
{
//Highscore file check
{
    highScoreFileCheck();
    readScores();
}
//Clear screen
c.clear();

//Call upon background method
background(x,y);
title();

//Setting text background color.
c.setTextBackgroundColor(Color.green);

//Prompt user.
c.println("1) To continue to game");
c.println("2) To see highscore of average");
c.print("Enter Your Choice ");

int read = c.readInt();

if(read == 1)
{
    howManyMarks(x,y);
}
if(read == 2)
{
    highScoreDisplay(x,y); 
}
}

/*This method method reads the score and name from the file
and writes it in to array.*/
public static void readScores() throws IOException
{
//Opening a file reader.
BufferedReader input = new BufferedReader(new FileReader(fileName));

//Declaring strings and charactor array.
String tempLine;
char tempChLine[]; 
String scoreStr;

//Declare integer as a counter.
int j;

//Read line from the file
tempLine = input.readLine();

//Read scores and names to array.
for (int i = 0; i < scores.length - 1; i++)
{
    //Set the array of characters to read line from file
    tempChLine = tempLine.toCharArray();

    //Clear string and array
    scoreStr = "";
    names[i] = "";

    //Reset counting variable
    j = 0;

    //Add the characters to name until marker #
    while (tempChLine[j] != '#')
    {
        names[i] += tempChLine[j];
        j++;
    }

    j++;

    //Add the characters to score string until marker $
    while (tempChLine[j] != '$')
    {
        scoreStr += tempChLine[j];
        j++;
    }

    //Convert scoreStr to int.
    scores[i] = Integer.parseInt(scoreStr);

    //Read next line
    tempLine = input.readLine();
}

//Close stream
input.close();
}