Erroneously removed part of an expression for .getLocation() == null