added null check in class path builder