Fix null ptr error due to non-inited ArrayList