FIRST-Tech-Challenge / FIRST-Tech-Challenge/FtcRobotController

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

Open
#566 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.3k
Forks
9.9k
Avg merge
18m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.