somewhere deep in my project, I've got a fixed size array of pointers to objects
YAAASensor *sensors_[NUM_CONDITIONS];
as is good practice, I'm assigning nullptrs to all of them first chance I get
for (uint8_t i = 0; i < NUM_CONDITIONS; i++)
sensors_[i] = nullptr;
however, nullptr checks which should then evaluate to false, evaluate to true:
if (sensors_[0])
Serial.println("WTF???");
this happens on my Arduino Due only, the checks work correctly on Mega2560, ESP8266 and ESP32 based boards. I have also tried NULL and 0 instead but the issure remains.
edit: Arduino IDE 1.8.5 with Arduino SAM Boards package 1.6.11