Fix NPE in SendableRegistry.foreachLiveWindow() (#1974)

This commit is contained in:
Peter Johnson
2019-10-22 21:12:07 -07:00
committed by GitHub
parent cfe23c5cd0
commit 6635ea75ee

View File

@@ -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;