Browse Source

AP_Notify: Add a NULL pointer check.

mission-4.1.18
murata 8 years ago committed by Tom Pittenger
parent
commit
34e491f168
  1. 3
      libraries/AP_Notify/Display.cpp

3
libraries/AP_Notify/Display.cpp

@ -356,6 +356,9 @@ void Display::update_all() @@ -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;

Loading…
Cancel
Save