AP_Notify: Add a NULL pointer check.

This commit is contained in:
murata 2017-01-23 06:28:06 +09:00 committed by Tom Pittenger
parent 19b21b4012
commit 34e491f168

View File

@ -356,6 +356,9 @@ void Display::update_all()
void Display::draw_text(uint16_t x, uint16_t y, const char* c)
{
if (nullptr == c) {
return;
}
while (*c != 0) {
draw_char(x, y, *c);
x += 7;