[Mono-bugs] [Bug 691839] New: Cannot package when creating a new Application property in a base activity class
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed May 4 23:51:48 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=691839
https://bugzilla.novell.com/show_bug.cgi?id=691839#c0
Summary: Cannot package when creating a new Application
property in a base activity class
Classification: Mono
Product: MonoDroid
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Tools
AssignedTo: mkestner at novell.com
ReportedBy: roman at kalantari.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101
Firefox/4.0.1
Attempting to create a BaseActivity class with a custom Application class seems
to break packaging.
Reproducible: Always
Steps to Reproduce:
Including these classes in the project throws an exception during packaging.
[Application]
public abstract class CustomApplication : Application
{
}
public class BaseActivity : Activity
{
public new CustomApplication Application
{
get { return ( (CustomApplication)base.Application ); }
}
}
Actual Results:
Throws the following exception in build log:
monodroid : error 1: System.NullReferenceException: Object reference not set to
an instance of an object [Z:\svn\PPR\combined\Device\Android\PP\PP.csproj]
at MonoDroid.Utils.ProcessRocks+<ReadStandardOutput>c__Iterator5.MoveNext
() [0x00000] in <filename unknown>:0
at Monodroid.Toolbox.InvokeCommand (IEnumerable`1 commandLine) [0x00000] in
<filename unknown>:0
at Monodroid.Toolbox.InvokeJavac (System.String src_path) [0x00000] in
<filename unknown>:0
at Monodroid.Droidinator.CreateDalvikBytecode
(System.Collections.Generic.List`1 javaTypes, System.Collections.Generic.List`1
assemblies) [0x00000] in <filename unknown>:0
at Monodroid.Droidinator.CreateApk () [0x00000] in <filename unknown>:0
at Monodroid.MainClass.Main (System.String[] argv) [0x00000] in <filename
unknown>:0
--
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