This commit is contained in:
mr
2025-02-05 15:02:35 +01:00
parent 6b362d77f0
commit e1968e14b0
2 changed files with 4 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ abstract class AbstractItem<X extends AbstractPricing, Y extends AbstractPartner
AbstractInstance<X,Y>? getSelectedInstance() {
if (selectedInstance == -1) { return instances.isEmpty ? null : instances[0]; }
return instances[selectedInstance];
return instances.isNotEmpty ? instances[selectedInstance] : null;
}
@override String getID() {