try {
    fis = context.openFileInput("Stores");
    ObjectInputStream oi = new ObjectInputStream(fis);
    toReturn = (ArrayList<Store>) oi.readObject();
    oi.close();
} catch (FileNotFoundException e) {
    Log.e("InternalStorage", e.getMessage());
} catch (IOException e) {
    Log.e("InternalStorage", e.getMessage());
} catch (ClassNotFoundException e) {
    e.printStackTrace();
}
I have a crashlog on the IOException scope, saying
java.lang.NullPointerException: println needs a message
Why would this happen?
 
     
    