Picolab / pico-engine

An implementation of the pico-engine hosted on node.js
http://picolabs.io/
MIT License
43 stars 8 forks source link

add conditional checking before acessing internal object #563

Closed CambodianCoder closed 3 years ago

CambodianCoder commented 3 years ago

This pull request is made to address the error I received when manually verifying a .krl file via piping the contents into krl-compiler --verify image

Added code based off of https://github.com/Picolab/pico-engine/blob/e0291d58299dfbe86cd8d3ab4994a4492c3f3413/packages/pico-engine/src/server.ts#L243