FtcRobotController icon indicating copy to clipboard operation
FtcRobotController copied to clipboard

Returning null in a function provided to telemetry.addData causes NPE

Open TheGlitch76 opened this issue 2 years ago • 1 comments

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.

TheGlitch76 avatar Jan 18 '23 22:01 TheGlitch76