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

Fixed NPE when getResourcePath() returns null