Skip to content

Exception in ConvertValueToNumericIfEnum #126

Description

@ondrasvoboda

I'm getting Object reference not set to an instance of an object exception in

   at System.Object.GetType()
   at Npgsql.NpgsqlServices.ConvertValueToNumericIfEnum(DbParameter parameter)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.SyncParameterProperties(EntityParameter entityParameter, DbParameter storeParameter, DbProviderServices storeProviderServices)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.PrepareEntityCommandBeforeExecution(EntityCommand entityCommand)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.<ExecuteStoreCommandsAsync>d__c.MoveNext()

I think there is parameter.value != null check missing in NpgsqlServices.cs:63

This is connected to #105 and happens when parameter value is null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions