Run the corresponding test, it creates a simple job with no SCMTrigger set up; and it fails with a NPE with previous implementation.
"Build when a change is pushed to X" should be a specific trigger.