mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Fix NPE in SendableRegistry.foreachLiveWindow() (#1974)
This commit is contained in:
@@ -468,6 +468,9 @@ public class SendableRegistry {
|
||||
Consumer<CallbackData> callback) {
|
||||
CallbackData cbdata = new CallbackData();
|
||||
for (Component comp : components.values()) {
|
||||
if (comp.m_sendable == null) {
|
||||
continue;
|
||||
}
|
||||
cbdata.sendable = comp.m_sendable.get();
|
||||
if (cbdata.sendable != null && comp.m_liveWindow) {
|
||||
cbdata.name = comp.m_name;
|
||||
|
||||
Reference in New Issue
Block a user