This is my write function
void writeText(Text[] t) {
    try {
        writer = new PrintWriter(new FileWriter(FILE_PATHPhrase));
        // Loop through each Person in the Person array
        for (int i = 0; i < t.length; i++) {
            // Write the name, then a # sign, then the surname
            writer.println(t[i].getTitle() + "#" + t[i].getText());
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    writer.close();
}
The nullpointer points here
 writer.println(t[i].getTitle() + "#" + t[i].getText());
I have no clue on why it does this..
 
     
    