Skip to content

Commit

Permalink
Handle special case in appendEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Apr 10, 2013
1 parent d9eae53 commit 730e1d9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 730e1d9

Please sign in to comment.