Skip to content

Commit

Permalink
Fix the precondition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Holmes committed Jan 14, 2015
1 parent 3fea564 commit cb9377a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/dmdirc/ui/core/profiles/MutableProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void setNicknames(final Iterable<String> nicknames) {

public void setNickname(final int index, final String newNickname) {
checkNotNull(newNickname);
checkArgument(nicknames.size() < index);
checkArgument(nicknames.size() > index);
nicknames.set(index, newNickname);
}

Expand Down

0 comments on commit cb9377a

Please sign in to comment.