Skip to content

Exception occured while saving ScenarioModule 'ContractVesselTracker' #55

@Pau-Already

Description

@Pau-Already

The following occurred during a non-ro/rp1 modded career.

Exception occured while saving ScenarioModule 'ContractVesselTracker':
System.NullReferenceException: Object reference not set to an instance of an object
  at ContractConfigurator.Extensions+<>c__DisplayClass5_1.<GetHashes>b__1 (ProtoPartSnapshot childPart) [0x00000] in <5f43a800affb4f318f640e019f093598>:0 
  at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) [0x00045] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at ContractConfigurator.Extensions+<GetHashes>d__5.MoveNext () [0x00320] in <5f43a800affb4f318f640e019f093598>:0 
  at System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x00036] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value) [0x0000a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at ContractConfigurator.ContractVesselTracker+<>c__DisplayClass17_0.<OnSave>b__1 (Vessel v) [0x0000f] in <5f43a800affb4f318f640e019f093598>:0 
  at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <9577ac7a62ef43179789031239ba8798>:0 
  at ContractConfigurator.ContractVesselTracker.OnSave (ConfigNode node) [0x00060] in <5f43a800affb4f318f640e019f093598>:0 

For context, this window popped up when making a save after an orbital docking event between 'Module 1' and 'Module 2.' Module 2 has already had Module 3 docked to it, and Module 4 docked with 3. In the save file Module 1 was a subject of ContractVesselTracker

	{
		name = ContractVesselTracker
		scene = 7, 8, 5
		VESSEL
		{
			key = Eve Express Launcher
			id = bc5c1472-998f-47b0-8e7c-990a7fb93a83
			hash = 1231180592
		}
	}

Module 1 (with a Cupola as a root part, and other crewable parts) was also the subject vessel of an available contract to crew a station.
Module 2 has as its root part a structural piece (NearFutureConstruction Octagonal Truss), modules 2,3,4 were probe controlled without crew spots.

After docking, VESSEL(Eve Express Launcher) doesn't appear in SCENARIO(ContractVesselTracker), but the contract is still active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions