diff --git a/common/network/GetAPIMessager.cxx b/common/network/GetAPIMessager.cxx index 4eafda5..b06fabd 100644 --- a/common/network/GetAPIMessager.cxx +++ b/common/network/GetAPIMessager.cxx @@ -108,6 +108,9 @@ uint8_t *GetAPIMessager::netGetScreenshot(uint16_t w, uint16_t h, if (h > screenH) h = screenH; + if (!screenW || !screenH) + vlog.error("Screenshot requested but no screenshot exists (screen hasn't been viewed)"); + if (!w || !h || q > 9 || !staging) return NULL;