Apart from the lengths of the lines: Either ncr or ncr.getIreportpath() is null assuming I have got the right line 19. Try this as line 18½:-
System.out.printf("ncr and ncr.getIreportpath() are not null: %b %b%n",
ncr, ncr.getIreportpath()); Such a line would normally print ...true true
If that line throws the Exception it will be ncr.getIreportpath() which is null. Don't know why either is null.