UmbraSpaceIndustries / USI-LS

USI Life Support
Other
65 stars 47 forks source link

NullReferenceException when recyclers have no power #255

Open drewcassidy opened 7 years ago

drewcassidy commented 7 years ago

When recyclers and habitats (and possibly agroponics) have no available power, they spam the console with this exception

[EXC 14:13:21.209] NullReferenceException: Object reference not set to an instance of an object
    USITools.ModuleResourceConverter_USI.PostProcess (ConverterResults result, Double deltaTime)
    LifeSupport.ModuleLifeSupportRecycler.PostProcess (ConverterResults result, Double deltaTime)
    BaseConverter.FixedUpdate ()

disabling and reanabling the life support modules fixes this

Full Log file: KSP.txt Save File (on the vessel "Luna Station"): persistent copy.txt

drewcassidy commented 7 years ago

While the exceptions are being thrown, the context menu looks like this. oddly it seems to happen with some parts but not others

screen shot 2017-07-07 at 4 18 50 pm