Project

General

Profile

Bug #790

harmless NullReferenceException when any editor marker (such as the CoM marker) is active without parts.

Added by m4v almost 11 years ago. Updated almost 8 years ago.

Status:
Closed
Severity:
Unworthy
Assignee:
-
Category:
Gameplay
Target version:
-
Start date:
06/19/2013
% Done:

100%

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

Description

steps to reproduce:
while in VAB/SPH
1. place any first part
2. enable the CoM marker
3. remove all the parts in place.

the log should be showing the following:

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component:InternalGetTransform ()
at UnityEngine.Component.get_transform () [0x00000] in <filename unknown>:0
at EditorMarker_CoM.recurseParts (.Part part, UnityEngine.Vector3& CoM, System.Single& m) [0x00000] in <filename unknown>:0
at EditorMarker_CoM.findCenterOfMass (.Part root) [0x00000] in <filename unknown>:0
at EditorMarker_CoM.UpdatePosition () [0x00000] in <filename unknown>:0
at EditorMarker.Update () [0x00000] in <filename unknown>:0

The same occurs with the CoT and CoL markers

History

#1 Updated by Ted over 10 years ago

  • Category set to Gameplay

#2 Updated by TriggerAu almost 8 years ago

  • Status changed from New to Needs Clarification

#3 Updated by Claw almost 8 years ago

  • Status changed from Needs Clarification to Closed
  • % Done changed from 0 to 100
  • Platform Linux, OSX, Windows added
  • Platform deleted (Any)

Fixed 1.1.X

Also available in: Atom PDF