null check in Locator.equals