Bug 14029 - Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Summary: Exception has been thrown by the target of an invocation. ---> System.Argumen...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-08-16 09:21 UTC by Marek Safar
Modified: 2014-04-04 20:15 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Marek Safar 2013-08-16 09:21:12 UTC
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2, System.String path3) [0x00033] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.IO/Path.cs:830 
  at Xamarin.AndroidTools.AndroidSdk.GetPlatformDirectory (Int32 apiLevel) [0x0001b] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:208 
  at Xamarin.AndroidTools.AndroidSdk.IsPlatformInstalled (Int32 apiLevel) [0x00008] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:226 
  at MonoDevelop.MonoDroid.MonoDroidFramework.IsPlatformInstalled (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework framework) [0x00013] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidFramework.cs:197 
  at MonoDevelop.MonoDroid.Gui.MonoDroidFrameworkOptionsPanel+<MonoDroidFrameworkOptionsPanel>c__AnonStorey24.<>m__A9 (MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00007] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Gui/MonoDroidFrameworkOptions.cs:55 
  at System.Linq.Enumerable.First[TargetFramework] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00013] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.Core/System.Linq/Enumerable.cs:812 
  at System.Linq.Enumerable.FirstOrDefault[TargetFramework] (IEnumerable`1 source, System.Func`2 predicate) [0x00007] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.Core/System.Linq/Enumerable.cs:869 
  at MonoDevelop.MonoDroid.Gui.MonoDroidFrameworkOptionsPanel..ctor (MonoDevelop.MonoDroid.MonoDroidProject project) [0x00084] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Gui/MonoDroidFrameworkOptions.cs:55 
  at MonoDevelop.MonoDroid.Gui.MonoDroidFrameworkOptions.CreatePanelWidget () [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Gui/MonoDroidFrameworkOptions.cs:26 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePageWidget (MonoDevelop.Ide.Gui.Dialogs.SectionPage page) [0x0003b] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:596 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ShowPage (MonoDevelop.Ide.Extensions.OptionsDialogSection section) [0x001ae] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:488 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnSelectionChanged (System.Object s, System.EventArgs a) [0x0002e] in /Users/builder/data/lanes/monodevelop-lion-master/9d6ef657/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:431 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System/Delegate.cs:424 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System/MulticastDelegate.cs:72 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System/Delegate.cs:398 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Comment 1 Mikayla Hutchinson [MSFT] 2014-04-04 20:15:34 UTC
Assuming this has been fixed by the many changes to that code, please reopen if it's still an issue.