EcoIssues
EcoIssues copied to clipboard
ArgumentNullException when harvesting contracted plants with a shovel
Eco version: 9.6.3.
When trying to harvest a camas bulb as part of a contract, the player gets kicked with the stack trace below. Harvesting other crops via picking, reaping and chopping still works as intended.
Exception: ArgumentNullException Message:Value cannot be null. (Parameter 'source') Source:System.Linq
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func
2 selector)
at Eco.Gameplay.Items.EnumerableItemExtensions.MakeSafe[TStack](IEnumerable1 stacks, Boolean allowEmptyStack) at Eco.Gameplay.Utils.ItemTracker.AddRemainingItems(IEnumerable
1 stacks)
at Eco.Gameplay.Utils.PickerTracker.AddRemainingItems(IEnumerable1 items) at Eco.Gameplay.Economy.Contracts.ContractClauseHarvest.ActionPerformed(GameAction action) at Eco.Gameplay.Economy.Contracts.Contract.<>c__DisplayClass85_0.<ActionPerformed>b__0(ContractClause x) at System.Linq.Enumerable.Any[TSource](IEnumerable
1 source, Func2 predicate) at Eco.Gameplay.Economy.Contracts.Contract.ActionPerformed(GameAction action) at Eco.Gameplay.Economy.Contracts.ContractManager.ActionPerformed(GameAction action) at Eco.Gameplay.GameActions.ActionUtil.ActionPerformed(GameAction action) at Eco.Gameplay.GameActions.GameActionManager.TryPerformActions(User user, PackFlags flags, List
1 actions, IEnumerable1 preTests, IEnumerable
1 postEffects)
at Eco.Gameplay.GameActions.GameActionManager.GetResultWithLock(User user, GameActionPack pack)
at Eco.Gameplay.GameActions.GameActionManager.TryPerformActions(User user, GameActionPack actionPack, Boolean notify)
at Eco.Gameplay.GameActions.GameActionManager.TryPerform(GameActionPack pack, Boolean notify)
at Eco.Gameplay.GameActions.AtomicActions.DoNow(Action1 func, Boolean notify) at Eco.Gameplay.GameActions.AtomicActions.DestroyPlantNow(MultiblockActionContext context, DeathType deathType, Inventory harvestTo, Boolean notify, Func
2 plantSpeciesChecked)
at Eco.Mods.TechTree.ShovelItem.OnActLeft(InteractionContext context) in /media/data1/Program Files/SteamLibrary/steamapps/common/Eco Server/Mods/core/Tools/ShovelItem.cs:line 58
at Eco.Gameplay.Players.Player.<>c__DisplayClass111_0.<PlayerInteractResult>b__2(IInteractable inter)
at Eco.Gameplay.Interactions.InteractionExtensions.ExecuteUntilSuccess[T](IEnumerable1 enumerable, Func
2 resultFunc)
at Eco.Gameplay.Players.Player.PlayerInteractResult(InteractionInfo info)
at Eco.Gameplay.Players.Player.PlayerInteract(InteractionInfo info)
Outer Exceptions:
One or more errors occurred. (Exception has been thrown by the target of an invocation.)
Exception has been thrown by the target of an invocation.
One or more errors occurred. (Value cannot be null. (Parameter 'source'))
Hi @cemeceme
Thank you for submitting this bug report. We are currently aware of this issue and our developers are closely looking into it. A fix is set to be rolled out in future game updates. Referece ID ECO-22104