diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/Encoder.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/Encoder.java index b92979fdee..8d28b08909 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/Encoder.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/Encoder.java @@ -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;