Não compare valores com o literal NULL ou uma string vazia
Regra do ZPA para PL/SQL e Oracle SQL · ComparisonWithNull
Para testar por nulls, use apenas as comparações IS NULL e IS NOT NULL. Qualquer outra comparação com nulls resultará em NULL.
Lembre que uma string vazia é equivalente ao literal NULL.
Exemplo de código não conforme
if var = null then
-- code
end if;
Ou:
if var = '' then
-- code
end if;
Solução conforme
if var is null then
-- code
end if;
if other_var is null then
-- code
end if;