Update SequenceEncoder.java

[+] exception