Oracle Message ORA-06503 - PL/SQL: Function returned without value

ERRORPL/SQL: Function returned without value
CAUSEA call to PL/SQL function completed, but no RETURN statement was executed.
ACTIONRewrite PL/SQL function, making sure that it always returns a value of a proper type.