Arduino Due: nullptr assignment fails

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

Are you absolutely sure that you print after initialization of the array?
The snippets you posted should indeed work, but there's probably something else going on. Please post an MCVE.

Pieter

yes I'm sure.
I'm having trouble creating an MCVE, but I've found out that the visual micro debugger is involved in the issue (the issue only appears when building with the Debug configuration). I think I'll take the issue over to the visual micro forums.