It's a bug nonetheless as there should be an error message instead of a crash.