I am calling a stored proc which returns a ref cursor and a string. The string is populated only if there is an error within the stored proc.
When I call the stored proc, I get the following error :invalid operation on null data.
It seems like an error in the generated code.
The following code fragments are all from the generated code :
if((ValueConverter.Convert(parameters[3])!=null) && (ValueConverter.Convert(parameters[3])!=System.DBNull.Value))
{
The definition of Convert method is :
internal class ValueConverter
{
internal static object Convert(OracleParameter parameter)
{
object toReturn = parameter.Value;
...
case "Oracle.DataAccess.Types.OracleString":
toReturn = ((OracleString)parameter.Value).Value;
break;
...
If the string parameter is null, above is obviously giving an error because there is no test for null.
I am using LLBLGen Pro 2.5 Final. Self referencing two class template targeted at .NET Framewwork 2.0. Oracle 10g database using ODP.NET 10g v2.