Bug 33609 - NRE in ImageButtonRenderer.GetBitmapAsync
Summary: NRE in ImageButtonRenderer.GetBitmapAsync
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-03 13:01 UTC by Marek Safar
Modified: 2015-09-03 17:58 UTC (History)
4 users (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 ANSWERED

Description Marek Safar 2015-09-03 13:01:35 UTC
This is relevant stack trace

System.NullReferenceException: Object reference not set to an instance of an object
  at XLabs.Forms.Controls.ImageButtonRenderer+<GetBitmapAsync>d__a.MoveNext () [0x0003c] in <filename unknown>:0
  at --- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:372
  at XLabs.Forms.Controls.ImageButtonRenderer+<SetImageSourceAsync>d__5.MoveNext () [0x000b2] in <filename unknown>:0
  at --- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/marek/git/xam/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:124
  at XLabs.Forms.Controls.ImageButtonRenderer+<OnElementPropertyChanged>d__f.MoveNext () [0x000e9] in <filename unknown>:0
  at --- End of stack trace from previous location where exception was thrown ---
  at at (wrapper dynamic-method) System.Object:2562d5a6-f4c5-4800-9b4c-7ca89479c8b1 (intptr,intptr)
  at at (wrapper native-to-managed) System.Object:2562d5a6-f4c5-4800-9b4c-7ca89479c8b1 (intptr,intptr)
Comment 1 Paul DiPietro [MSFT] 2015-09-03 17:58:22 UTC
This appears to be an XLabs issue, which you can file a report for at the project repo (https://github.com/XLabs/Xamarin-Forms-Labs).