Sometimes getResourcePath() would return null which caused a NullPointerException
Merge pull request #1 from jplock/empty_path

Sometimes getResourcePath() would return null which caused a NullPointer...