[Mono-bugs] [Bug 730454] New: Cursor does not function properly when using linking

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 15 09:12:47 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=730454

https://bugzilla.novell.com/show_bug.cgi?id=730454#c0


           Summary: Cursor does not function properly when using linking
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mkowalski at acumeta.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2)
AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.932.0 Safari/535.8

I have created a custom SimpleCursorAdapter and have overridden the NewView and
BindView methods in order to format some of the text that is displayed in the
resulting view. Everything works without issue when using no linking. However,
when I attempt to run the application with linking, the cursor (in the context
of the adapter) does not appear to function normally.

Reproducible: Always

Actual Results:  
If running against Android 2.2, the GetColumnIndex/GetColumnIndexOrThrow
methods always return 1 and all resulting Get methods (e.g. GetLong, GetInt,
GetString, etc.) fail to return any data. 

If running against Android 2.3.3, whenever the
GetColumnIndex/GetColumnIndexOrThrow methods are called, I receive the
following exception: 

E/mono    (  347): Unhandled Exception: System.NullReferenceException: Object
reference not set to an instance of an object 
E/mono    (  347):   at (wrapper delegate-invoke)
<Module>:invoke_int__this___intptr_intptr_intptr_JValue[]
(intptr,intptr,intptr,Android.Runtime.JValue[]) 
E/mono    (  347):   at Android.Runtime.JNIEnv.CallIntMethod (IntPtr jobject,
IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00000] 
E/mono    (  347):   at Android.Database.ICursorInvoker.GetColumnIndexOrThrow
(System.String columnName) [0x00000] 

Expected Results:  
Cursor should return data without issue.

Using Monodroid v1.9.2

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list