Checking for null to prevent a NPE when no Origin is specified