From 2d05b084d2ee3fc9f44fd87b10264571b7229605 Mon Sep 17 00:00:00 2001 From: Leshana Date: Wed, 19 Feb 2020 22:05:58 -0500 Subject: [PATCH] Fix Runtime in seed.dm,102: Cannot read null.len --- code/modules/hydroponics/seed.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/hydroponics/seed.dm b/code/modules/hydroponics/seed.dm index 9085caad59b..aa83c133a03 100644 --- a/code/modules/hydroponics/seed.dm +++ b/code/modules/hydroponics/seed.dm @@ -99,7 +99,7 @@ return var/datum/reagents/R = new/datum/reagents(100) - if(chems.len) + if(chems && chems.len) for(var/rid in chems) var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/3)) R.add_reagent(rid,injecting) @@ -193,7 +193,7 @@ if(!flesh_colour) flesh_colour = get_trait(TRAIT_PRODUCT_COLOUR) if(flesh_colour) splat.color = get_trait(TRAIT_PRODUCT_COLOUR) - if(chems) + if(chems && chems.len) for(var/mob/living/M in T.contents) if(!M.reagents) continue