mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibj] FieldObject2d: Add null check to close() (#4619)
This commit is contained in:
@@ -25,7 +25,9 @@ public class FieldObject2d implements AutoCloseable {
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
m_entry.close();
|
||||
if (m_entry != null) {
|
||||
m_entry.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user