Should this be "or" not "and"?  I imagine either value being null would lead to undesirable results.