Cause: A call to PL/SQL function completed, but no RETURN statement was executed. See the solution below.
Error solution: Rewrite PL/SQL function, making sure that it always returns a value of a proper type.
Database version: Oracle 11g Release 2 (11.2)