Better error messages

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.

2 Likes

Hi MIchael. Can you add this to our internal inbox as bugs. We need to know how to reproduce these too.

Ok, I’ll add it now.

1 Like

This is fixed in a later release.