During telemetry data parsing two TypeError: Cannot read property can occur.
It looks like it is possible that during the PlayerAttack event, event.vehicle object can be null:
Stack:
TypeError: Cannot read property 'vehicleType' of null
at new Vehicle (http://localhost:4200/vendor.js:106095:37)
at new PlayerAttack (http://localhost:4200/vendor.js:105288:25)
at Telemetry.telemetryData.forEach.elem (http://localhost:4200/vendor.js:106207:51)
at Array.forEach (<anonymous>)
at new Telemetry (http://localhost:4200/vendor.js:106161:23)
The same situation can heppen in PlayerTakeDamage event. The event.attacker can be null.
Stack:
TypeError: Cannot read property 'name' of null
at new Character (http://localhost:4200/vendor.js:105867:32)
at new PlayerTakeDamage (http://localhost:4200/vendor.js:105577:26)
at Telemetry.telemetryData.forEach.elem (http://localhost:4200/vendor.js:106233:55)
at Array.forEach (<anonymous>)
at new Telemetry (http://localhost:4200/vendor.js:106163:23)
During telemetry data parsing two TypeError: Cannot read property can occur.
It looks like it is possible that during the PlayerAttack event, event.vehicle object can be null:
Stack:
Event object:
The same situation can heppen in PlayerTakeDamage event. The event.attacker can be null.
Stack:
Event object:
Checking of objects can help to parse whole telemetry object data:
pubg-typescript-api\entities\telemetry\events\playerAttack.js
pubg-typescript-api\entities\telemetry\events\playerTakeDamage.js