[Mono-bugs] [Bug 676309] New: [generator] string ICharSequence overloads don't support nulls

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 2 10:36:02 EST 2011


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

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


           Summary: [generator] string ICharSequence overloads don't
                    support nulls
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: mkestner at novell.com
        ReportedBy: jpryor at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Consider this innocuous code which worked in Preview 12:

    TextView tv = new TextView(this);
    tv.Text = null;

This now fails with:

Error log:
gids={3003, 1015}
E/mono    ( 7005): [0xafd4d440:] EXCEPTION handling:
Java.Lang.NullPointerException: Exception of type
'Java.Lang.NullPointerException' was thrown.
I/MonoDroid( 7005): UNHANDLED EXCEPTION: Java.Lang.NullPointerException:
Exception of type 'Java.Lang.NullPointerException' was thrown.
I/MonoDroid( 7005): at Android.Runtime.JNIEnv.NewObject
(intptr,intptr,Android.Runtime.JValue[]) <0x000a4>
I/MonoDroid( 7005): at Java.Lang.String..ctor (string) <0x0025f>
I/MonoDroid( 7005): at Android.Widget.TextView.set_Text (string) <0x0002b>
I/MonoDroid( 7005): at MonoDroidApplicationTextViewP13.Activity1.OnCreate
(Android.OS.Bundle) <0x00193>
I/MonoDroid( 7005): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_
(intptr,intptr,intptr) <0x0005f>
I/MonoDroid( 7005): at (wrapper dynamic-method)
object.6c30b5a4-906e-4c06-add1-b2af5c1e5416 (intptr,intptr,intptr) <0x00033>
E/mono    ( 7005): [0xafd4d440:] EXCEPTION handling:
Java.Lang.NullPointerException: Exception of type
'Java.Lang.NullPointerException' was thrown.
E/mono    ( 7005):
E/mono    ( 7005): Unhandled Exception: Java.Lang.NullPointerException:
Exception of type 'Java.Lang.NullPointerException' was thrown.
E/mono    ( 7005):   at Android.Runtime.JNIEnv.NewObject (IntPtr jclass, IntPtr
jmethod, Android.Runtime.JValue[] parms)
 [0x00000] in <filename unknown>:0
E/mono    ( 7005):   at Java.Lang.String..ctor (System.String string) [0x00000]
in <filename unknown>:0
E/mono    ( 7005):   at Android.Widget.TextView.set_Text (System.String value)
[0x00000] in <filename unknown>:0
E/mono    ( 7005):   at MonoDroidApplicationTextViewP13.Activity1.OnCreate
(Android.OS.Bundle bundle)

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


More information about the mono-bugs mailing list