Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picker Attribute "SelectedIndex" Not being respected on page load - fix #22353

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Merge branch 'main' into fix-9150

f5531ac
Select commit
Loading
Failed to load commit list.
Open

Picker Attribute "SelectedIndex" Not being respected on page load - fix #22353

Merge branch 'main' into fix-9150
f5531ac
Select commit
Loading
Failed to load commit list.
Azure Pipelines / MAUI-public failed Jun 13, 2024 in 3h 52m 59s

Build #8.0.70-ci+pr.22353.azdo.117425 had test failures

Details

Tests

  • Failed: 32 (0.09%)
  • Passed: 34,317 (99.33%)
  • Other: 200 (0.58%)
  • Total: 34,549

Annotations

Check failure on line 82682 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-public

Build log #L82682

PowerShell exited with code '1'.

Check failure on line 80009 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-public

Build log #L80009

PowerShell exited with code '1'.

Check failure on line 1 in Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.DoubleSet

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-public

Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.DoubleSet

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at Microsoft.Maui.Controls.Picker.ClampSelectedIndex() in /_/src/Controls/src/Core/Picker/Picker.cs:line 344
   at Microsoft.Maui.Controls.Picker.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in /_/src/Controls/src/Core/Picker/Picker.cs:line 245
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Microsoft.Maui.LockableObservableListWrapper.InternalAdd(String item) in /_/src/Core/src/Primitives/LockableObservableListWrapper.cs:line 58
   at Microsoft.Maui.LockableObservableListWrapper.Add(String item) in /_/src/Core/src/Primitives/LockableObservableListWrapper.cs:line 64
   at Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.<>c.<.cctor>b__8_180() in /_/src/Controls/tests/Core.UnitTests/NotifiedPropertiesTests.cs:line 127
   at Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.PropertyTestCase`2.CreateView() in /_/src/Controls/tests/Core.UnitTests/NotifiedPropertiesTests.cs:line 51
   at Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.DoubleSet(PropertyTestCase property) in /_/src/Controls/tests/Core.UnitTests/NotifiedPropertiesTests.cs:line 202
   at InvokeStub_NotifiedPropertiesTests.DoubleSet(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 1 in Microsoft.Maui.Controls.Core.UnitTests.PickerTests.TestSelectedIndexOutOfRangeUpdatesSelectedItem

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-public

Microsoft.Maui.Controls.Core.UnitTests.PickerTests.TestSelectedIndexOutOfRangeUpdatesSelectedItem

Assert.Equal() Failure: Values differ
Expected: Lemon
Actual:   null
Raw output
   at Microsoft.Maui.Controls.Core.UnitTests.PickerTests.TestSelectedIndexOutOfRangeUpdatesSelectedItem() in /_/src/Controls/tests/Core.UnitTests/PickerTests.cs:line 151
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.Maui.Controls.Core.UnitTests.PickerTests.TestSelectedIndexInRange

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-public

Microsoft.Maui.Controls.Core.UnitTests.PickerTests.TestSelectedIndexInRange

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at Microsoft.Maui.Controls.Picker.ClampSelectedIndex() in /_/src/Controls/src/Core/Picker/Picker.cs:line 344
   at Microsoft.Maui.Controls.Picker.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in /_/src/Controls/src/Core/Picker/Picker.cs:line 245
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Microsoft.Maui.LockableObservableListWrapper.InternalAdd(String item) in /_/src/Core/src/Primitives/LockableObservableListWrapper.cs:line 58
   at Microsoft.Maui.LockableObservableListWrapper.Add(String item) in /_/src/Core/src/Primitives/LockableObservableListWrapper.cs:line 64
   at Microsoft.Maui.Controls.Core.UnitTests.PickerTests.TestSelectedIndexInRange() in /_/src/Controls/tests/Core.UnitTests/PickerTests.cs:line 76
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.Set

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-public

Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.Set

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at Microsoft.Maui.Controls.Picker.ClampSelectedIndex() in /_/src/Controls/src/Core/Picker/Picker.cs:line 344
   at Microsoft.Maui.Controls.Picker.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in /_/src/Controls/src/Core/Picker/Picker.cs:line 245
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Microsoft.Maui.LockableObservableListWrapper.InternalAdd(String item) in /_/src/Core/src/Primitives/LockableObservableListWrapper.cs:line 58
   at Microsoft.Maui.LockableObservableListWrapper.Add(String item) in /_/src/Core/src/Primitives/LockableObservableListWrapper.cs:line 64
   at Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.<>c.<.cctor>b__8_180() in /_/src/Controls/tests/Core.UnitTests/NotifiedPropertiesTests.cs:line 127
   at Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.PropertyTestCase`2.CreateView() in /_/src/Controls/tests/Core.UnitTests/NotifiedPropertiesTests.cs:line 51
   at Microsoft.Maui.Controls.Core.UnitTests.NotifiedPropertiesTests.Set(PropertyTestCase property) in /_/src/Controls/tests/Core.UnitTests/NotifiedPropertiesTests.cs:line 183
   at InvokeStub_NotifiedPropertiesTests.Set(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)