FtcRobotController
FtcRobotController copied to clipboard
Returning null in a function provided to telemetry.addData causes NPE
Calling telemetry.addData("foo", () -> null);
in an OpMode will cause a NullPointerException at org.firstinspires.ftc.robotcore.internal.opmode.TelemetryImpl$Value.compose(TelemtryImpl.java:134)
when telemetry is being updated.
The decompiled code doesn't make the reason immediately obvious.