[Mono-bugs] [Bug 666456] New: monodroid.exe throws NullReferenceException from Mono.Linker.Annotations.GetAction() when a class library is referenced

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 23 16:03:43 EST 2011


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

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


           Summary: monodroid.exe throws NullReferenceException from
                    Mono.Linker.Annotations.GetAction() when a class
                    library is referenced
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: mkestner at novell.com
        ReportedBy: ondrej at syncplicity.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10

In Preview 11, when referencing a MonoDroid class library in a MonoDroid
application, the build process will throw a NullReferenceException:

monodroid : error 1: System.NullReferenceException: Object reference not set to
an instance of an object.
     at Mono.Linker.Annotations.GetAction(AssemblyDefinition assembly)
     at Mono.Tuner.ApplyPreserveAttributeBase.IsActiveFor(AssemblyDefinition
assembly)
     at Mono.Tuner.SubStepDispatcher.CategorizeSubStep(ISubStep substep,
AssemblyDefinition assembly)
     at Mono.Tuner.SubStepDispatcher.CategorizeSubSteps(AssemblyDefinition
assembly)
     at Mono.Tuner.SubStepDispatcher.BrowseAssemblies(IEnumerable`1 assemblies)
     at Mono.Tuner.SubStepDispatcher.Process(LinkContext context)
     at Mono.Linker.Pipeline.Process(LinkContext context)
     at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext&
context, List`1& assemblies)
     at Monodroid.Scanner.LinkAssemblies(Arguments args, List`1& assemblies)
     at Monodroid.Droidinator.CreateApk()
     at Monodroid.MainClass.Main(String[] argv)

After editing the MonoDroid application's project properties and changing the
Linking property from the default "Sdk and User Assemblies" to "Sdk Assemblies
Only", the problem goes away.

Reproducible: Always

Steps to Reproduce:
1. Create a MonoDroid application.
2. Create a MonoDroid class library.
3. Reference the class library project in the application.
4. Try to build.
Actual Results:  
Build failed, NullReferenceException was thrown by monodroid.exe.

Expected Results:  
Build succeeds.

-- 
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