fix NullPointerException when domaincode directory is empty
Merge pull request #2 from NoUsername/master

fix NullPointerException when domaincode directory is empty