mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
AP_Notify: Add a NULL pointer check.
This commit is contained in:
parent
19b21b4012
commit
34e491f168
@ -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…
Reference in New Issue
Block a user