generateeReport: NullPointerException handling