Skip to main content

Unnecessary NULL statement

ZPA rule for PL/SQL and Oracle SQL · UnnecessaryNullStatement

A NULL statement at the same level of other statements is useless, so should be removed.

Examples​

Noncompliant Code Example
BEGIN
var := 1;
NULL; -- this NULL statement can be removed
END
Compliant Solution
BEGIN
var := 1;
END