guard against a few more null screen pointers

This commit is contained in:
Jonathan Bennett
2025-05-18 19:57:49 -05:00
parent 4d1d89644b
commit 7411dd4f0c
3 changed files with 7 additions and 1 deletions

View File

@@ -961,7 +961,7 @@ void setup()
screen->setup();
}
#else
if (screen_found.port != ScanI2C::I2CPort::NO_I2C)
if (screen_found.port != ScanI2C::I2CPort::NO_I2C && screen)
screen->setup();
#endif
#endif