vgstation-coders / vgstation13

Butts
GNU General Public License v3.0
264 stars 543 forks source link

Runtime error defibrillating someone wearing a uniform #17568

Closed DamianX closed 6 years ago

DamianX commented 6 years ago
x4 defib.dm,159: Cannot read null.body_parts_covered
  proc name: attemptDefib (/obj/item/weapon/melee/defibrillator/proc/attemptDefib)
  usr: Willy Wankov (bohaynes) (/mob/living/carbon/human)
  usr.loc: The floor (257, 244, 1) (/turf/simulated/floor)
  src: the emergency defibrillator (/obj/item/weapon/melee/defibrillator)
  src.loc: Willy Wankov (/mob/living/carbon/human)
  call stack:
  the emergency defibrillator (/obj/item/weapon/melee/defibrillator): attemptDefib(Unknown (as Wortel) (/mob/living/carbon/human), Willy Wankov (/mob/living/carbon/human))
  the emergency defibrillator (/obj/item/weapon/melee/defibrillator): attack(Unknown (as Wortel) (/mob/living/carbon/human), Willy Wankov (/mob/living/carbon/human))
  Unknown (as Wortel) (/mob/living/carbon/human): attackby(the emergency defibrillator (/obj/item/weapon/melee/defibrillator), Willy Wankov (/mob/living/carbon/human), "left=1;screen-loc=9:16,8:12", null)
  Willy Wankov (/mob/living/carbon/human): ClickOn(Unknown (as Wortel) (/mob/living/carbon/human), "left=1;screen-loc=9:16,8:12")
  Unknown (as Wortel) (/mob/living/carbon/human): Click(the floor (258,244,1) (/turf/simulated/floor), "mapwindow.map", "left=1;screen-loc=9:16,8:12")
  Unknown (as Wortel) (/mob/living/carbon/human): Click(the floor (258,244,1) (/turf/simulated/floor), "mapwindow.map", "left=1;screen-loc=9:16,8:12")

Steps to reproduce

Specific information for locating

https://github.com/vgstation-coders/vgstation13/blob/209e5e38f38c0cb713ae3ca246f2914f868e0ef9/code/game/objects/items/weapons/defib.dm#L159

Length of time in which bug has been known to occur

17498

Issue bingo

MadmanMartian commented 6 years ago

@DrCelt

ghost commented 6 years ago

Uh oh