Attempt to read property "directoryCategoryID" on null