REPORTS-220: Fixed NPE

Fixed NPE