Project

General

Profile

Bug #13509

In Editor, clicking New button while in Actions or Crew tab causes nullref

Added by linuxgurugamer over 7 years ago. Updated over 7 years ago.

Status:
Confirmed
Severity:
Normal
Assignee:
-
Category:
Gameplay
Target version:
-
Start date:
01/02/2017
% Done:

10%

Version:
Platform:
Windows
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Totally reproducable, in a clean stock game:
1. Go into Editor
2. Select a pod
3. Remove all kerbals from the pod
4. Click the New button, and don't bother to save

This is the fragment from the log file:

[GenericAppFrame] Reposition 0.09140638 51524

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

[UIMasterController]: ShowUI

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
at ShipConstruction.CalculateCraftSize (.ShipConstruct ship) [0x00000] in <filename unknown>:0
at KSP.UI.Screens.EngineersReport.UpdateCratStats (.ShipConstruct ship) [0x00000] in <filename unknown>:0
at KSP.UI.Screens.EngineersReport+<UpdateCraftStatsRoutine>c__Iterator11C.MoveNext () [0x00000] in <filename unknown>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0

(Filename: Line: -1)

[MessageSystem] Save Messages

output_log.zip (26.3 KB) output_log.zip [email protected] Technicalfool, 01/03/2017 10:35 PM

History

#1 Updated by Technicalfool over 7 years ago

  • File output_log.zip output_log.zip added
  • Subject changed from In Editor, clicking New button after removing kerbal from capsule gets a NullRef to In Editor, clicking New button while in Actions or Crew tab causes nullref
  • Status changed from New to Confirmed
  • % Done changed from 0 to 10

Confirmed and title edited to reflect new information. The nullref appears to occur any time that a tab other than "build" is currently active, regardless of whether kerbals have been removed from a pod, or whether a crewed pod is part of the current vessel.

Also available in: Atom PDF