Check lookup field is null in apex
Just compare against null
directly (your first example).
Your second approach will always yield false
.
Your third approach is about twice as slow as the first.
Just compare against null
directly (your first example).
Your second approach will always yield false
.
Your third approach is about twice as slow as the first.