"System.NullReferenceException: Object reference not set to an instance of an object.
at MvvmCross.Droid.Support.V7.RecyclerView.AttributeHelpers.MvxRecyclerViewAttributeExtensions.TryInitializeBindingResourcePaths () [0x00047] in <filename unknown>:0
at MvvmCross.Droid.Support.V7.RecyclerView.AttributeHelpers.MvxRecyclerViewAttributeExtensions.ReadRecyclerViewItemTemplateSelectorClassName (Android.Content.Context context, IAttributeSet attrs) [0x00000] in <filename unknown>:0
at MvvmCross.Droid.Support.V7.RecyclerView.AttributeHelpers.MvxRecyclerViewAttributeExtensions.BuildItemTemplateSelector (Android.Content.Context context, IAttributeSet attrs) [0x00000] in <filename unknown>:0
at MvvmCross.Droid.Support.V7.RecyclerView.MvxRecyclerView..ctor (Android.Content.Context context, IAttributeSet attrs, Int32 defStyle, IMvxRecyclerAdapter adapter) [0x00022] in <filename unknown>:0
Actual behavior cause
In MvvmCross.Droid.Support.V7.RecyclerView project, in the method TryInitializeBindingResourcePaths of the class MvvmCross.Droid.Support.V7.RecyclerView.AttributeHelpers.MvxRecyclerViewAttributeExtensions,
there is some reflection executed at runtime : "MvxRecyclerViewItemTemplateSelector = (int) styleableType.GetField("MvxRecyclerView_MvxItemTemplateSelector").GetValue(null);"
In the commit dd8f78154f2001af917303a6d4df6e00117ed2ce, the file MvxRecyclerViewBindingAttributes.xml has been modified so the generated resource MvxRecyclerView_MvxItemTemplateSelector do not exists anymore. Instead, we have MvxRecyclerView_MvxTemplateSelector that is generated.
Steps to reproduce
Actual behavior
NullReferenceException is thrown:
Actual behavior cause
In MvvmCross.Droid.Support.V7.RecyclerView project, in the method TryInitializeBindingResourcePaths of the class MvvmCross.Droid.Support.V7.RecyclerView.AttributeHelpers.MvxRecyclerViewAttributeExtensions, there is some reflection executed at runtime : "MvxRecyclerViewItemTemplateSelector = (int) styleableType.GetField("MvxRecyclerView_MvxItemTemplateSelector").GetValue(null);"
In the commit dd8f78154f2001af917303a6d4df6e00117ed2ce, the file MvxRecyclerViewBindingAttributes.xml has been modified so the generated resource MvxRecyclerView_MvxItemTemplateSelector do not exists anymore. Instead, we have MvxRecyclerView_MvxTemplateSelector that is generated.
Configuration
package MvvmCross.Droid.Support.V7.RecyclerView Version: 4.1.7