Consider pass by value versus pass by reference. Java is always ... which one? How does that apply here?
Also, even if the object is null, a) the compiler won't know that (it's a runtime condition) and b) it's a valid state. You'll only get an error (NullPointerException at runtime) if you try to access a field or method on a null object.