Sometimes getResourcePath() would return null which caused a NullPointerException
Merge remote-tracking branch 'jplock/empty_path'
Merge branch 'master' into ModelClasses