Permalink
Browse files

Handle special case in appendEncoder

  • Loading branch information...
1 parent d9eae53 commit 730e1d978de889e89eb5a8052bf1c2ec524f7a5f @lhotari lhotari committed Apr 8, 2013
@@ -86,6 +86,7 @@ else if (!encoders.equals(other.encoders))
}
public EncodingState appendEncoder(Encoder encoder) {
+ if(encoder==null) return this;
Set<Encoder> newEncoders;
if (encoders == null || encoders.size()==0) {
newEncoders = Collections.singleton(encoder);

0 comments on commit 730e1d9

Please sign in to comment.