Perforce polling errors with a NullPointerException when you use a View Map from File and specify Poll Exclude File(s). When you just use the View Map from File and no exclusions polling works fine.
ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@76948f[test_view_file_perforce_polling]
java.lang.NullPointerException
at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:2102)
at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:2097)
at hudson.plugins.perforce.PerforceSCM.isFileInView(PerforceSCM.java:672)
at hudson.plugins.perforce.PerforceSCM.isChangelistExcluded(PerforceSCM.java:1288)
at hudson.plugins.perforce.PerforceSCM.getCurrentDepotRevisionState(PerforceSCM.java:1238)
at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1118)
at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
at hudson.scm.SCM.poll(SCM.java:373)
...