SPI: Check for null (#850)

This commit is contained in:
Dustin Spicuzza
2017-12-25 23:03:22 -05:00
committed by Peter Johnson
parent 691741cfcb
commit a3e5378d14

View File

@@ -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();
}