Oracle Solution for Error ora-37187

Solution for Oracle Error ORA-37187

ORA-37187: null parent and child pair found in parent-child hierarchy

What triggered the Error:

While reading values for a parent-child hierarchy, a row was retrieved which had both null child and parent values.

What should we do to fix it:

Correct the source table or SQL to return value parent and child pairs.