Fix brick.print()

This commit is contained in:
Michal Moskal
2017-10-30 19:03:45 +00:00
parent 2df90152fe
commit e8e31e6aa7
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ extern "C" void drawPanic(int code) {
}
bool isValidImage(Buffer buf) {
return buf->length >= 3 && buf->data[0] == 0xf0;
return buf != NULL && buf->length >= 3 && buf->data[0] == 0xf0;
}
/** Makes an image bound to a buffer. */