The behavior of references that don't reference anything in Java and C++ is idiotic and mother fucking annoying when you're trying to write a GUI.

Agreed. That's why you cannot have a reference that points/refers/whatever to NULL in C++.