mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Fix encoder sourceA null check (#579)
This commit is contained in:
committed by
Peter Johnson
parent
f3efb948fe
commit
06321b8e87
@@ -277,7 +277,7 @@ public class Encoder extends SensorBase implements CounterBase, PIDSource, LiveW
|
||||
m_allocatedA = false;
|
||||
m_allocatedB = false;
|
||||
m_allocatedI = false;
|
||||
if (sourceB == null) {
|
||||
if (sourceA == null) {
|
||||
throw new NullPointerException("Digital Source A was null");
|
||||
}
|
||||
m_aSource = sourceA;
|
||||
|
||||
Reference in New Issue
Block a user