maul-esel / ssharp

S# is a formal modeling and safety analysis framework for safety-critical systems. It provides a domain specific modeling language and fully automated formal safety analysis tools based on C# and .NET.
http://safetysharp.isse.de/wiki
MIT License
0 stars 1 forks source link

NullReferenceException in CartAgent in SimulateProfileBased #34

Closed maul-esel closed 6 years ago

maul-esel commented 6 years ago

Bug

A NullReferenceException is thrown in CartAgent.TransferResource().

Reproduce

Run SimulateProfileBased > FewAgentsHighRedundancy (Coalition) test with seed 270646890. Discovered on commit 3e034f9.

Cause

The receiving agent is null - this indicates a bug in BaseAgent, which shouldn't call TransferResource() in such a case.

maul-esel commented 6 years ago

Fixed by 2cf72cabcd.