fixed null pointer bug in directory
Merge branch 'develop' of https://github.com/elyas-bhy/CampusUB1 into develop