fixing NPE adding auto import for upload Invoices