Open matchilling opened 5 years ago
It needs more checks for empty strings. Ex)
should be if ((categoryString == null || categoryString.trim().isEmpty()) && (name == null || name.trim().isEmpty()))
should be if ((categoryString == null || categoryString.trim().isEmpty()) && (name != null && !name.trim().isEmpty()))
though it can probably be simplified to (categoryString == null || categoryString.trim().isEmpty())
should ideally be if ((name != null && !name.trim().isEmpty()))
.
I'll happily provide my changes in a PR if you want and the relevant tests of course.