Fix encoder sourceA null check (#579)

This commit is contained in:
Austin Shalit
2017-07-18 19:34:45 -07:00
committed by Peter Johnson
parent f3efb948fe
commit 06321b8e87

View File

@@ -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;