[Mono-list] NullReferenceException in Npgsql.NpgsqlCommandBuilder.GetUpdateCommand

Paolo Molaro lupus at ximian.com
Mon Dec 11 05:05:42 EST 2006


On 12/11/06 Andrus wrote:
> IDbDataAdapter DataAdapter = new Npgsql.NpgsqlDataAdapter();
> Npgsql.NpgsqlCommandBuilder builder=
>            new Npgsql.NpgsqlCommandBuilder(
>                 (Npgsql.NpgsqlDataAdapter)DataAdapter);
> DataRow row = DataSet.Tables[0].Rows[1];
> DataAdapter.UpdateCommand = builder.GetUpdateCommand(row);
> 
> But got error in GetUpdateCommand():
> 
> System.NullReferenceException was unhandled

Could you provide a complete test case and file it in a bug report in
bugzilla?
Thanks.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-list mailing list