[wpilibj] FieldObject2d: Add null check to close() (#4619)

This commit is contained in:
Peter Johnson
2022-11-12 16:51:41 -08:00
committed by GitHub
parent 179f569113
commit 5a1e7ea036

View File

@@ -25,7 +25,9 @@ public class FieldObject2d implements AutoCloseable {
@Override
public void close() {
m_entry.close();
if (m_entry != null) {
m_entry.close();
}
}
/**