mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
SPI: Check for null (#850)
This commit is contained in:
committed by
Peter Johnson
parent
691741cfcb
commit
a3e5378d14
@@ -544,8 +544,10 @@ public class SPI {
|
||||
* Frees the accumulator.
|
||||
*/
|
||||
public void freeAccumulator() {
|
||||
m_accum.free();
|
||||
m_accum = null;
|
||||
if (m_accum != null) {
|
||||
m_accum.free();
|
||||
m_accum = null;
|
||||
}
|
||||
freeAuto();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user