Whenever I get an error in a controller JavaScript, it says the exact file and line number where an error occurs, which is very helpful. But today I got an error message that didn’t help at all. Just a large stacktrace in the log that said:
“Caused by: java.lang.NullPointerException: Name is null”
I finally figured it out. I had recently added a SingleSelector input to a part config and I forgot to include the <selector-type>
element. Would have been nice if the error message said “SingleSelector malformed” or “content type ‘Event’ malformed” or something.