Skip to content

Commit

Permalink
DocumentIdsSelection.ofCommaSeparatedString: trim whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Oct 23, 2017
1 parent 1d14c17 commit 6f23f30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static DocumentIdsSelection ofIntSet(final Collection<Integer> intDocumen

public static DocumentIdsSelection ofCommaSeparatedString(final String string)
{
if (string == null || string.isEmpty())
if (string == null || string.trim().isEmpty())
{
return DocumentIdsSelection.EMPTY;
}
Expand Down

0 comments on commit 6f23f30

Please sign in to comment.