SAP Knowledge Base Article - Preview

2167035 - ADO.NET: SELECT int crashes with "Object reference not set to an instance of an object" error if number´s last byte ends in A7 or A8 - SAP SDK

Symptom

  • SAP ADO.NET crashes if issuing a "SELECT" clause with decimal number which corresponding hex ends in "A7" or "A8". Example: SELECT C1= 50587560
  • SELECT C1= 50587560 crashes with following stack trace:

System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.NullReferenceException: Object reference not set to an instance of an object.
at Sybase.Data.AseClient.AseDataReader.ReadAltFormat()
at Sybase.Data.AseClient.AseDataReader.Perform_RetrieveHasNextRow()
at Sybase.Data.AseClient.AseDataReader.Perform_Next()
at Sybase.Data.AseClient.AseDataReader.Read()
at TesteAseCliente.Form1.Button1_Click(Object sender, EventArgs e) in C:\tmp\TesteAseCliente\TesteAseCliente\TesteAseCliente\Form1.vb:line 132 


Read more...

Environment

  • Adaptive Server Enterprise ADO.NET Data Provider 15.7 with builds SP133 or above
  • SAP Adaptive Server Enterprise (ASE) 15.5/15.7
  • Microsoft Visual Studio 2010/2012

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase SDK 15.7 ; Sybase Software Developer Kit 15.7

Keywords

object,not,referece,null,ADO.NET,ADO,NET,.NET,ReadAltFormat,Perform_RetrieveHasNextRow,Perform_Next,set,crash,exception,error,system,threading,NullReferenceException,select,integer, CR#783799, CR783799, 783799 , KBA , BC-SYB-SDK , SDK , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.