Commit c3b9c327 authored by Greg Messner's avatar Greg Messner
Browse files

Changed processing of whitespace on content properties (#136).

parent 9b2b383e
......@@ -299,8 +299,8 @@ public abstract class AbstractApi implements Constants {
return;
}
String stringValue = value.toString().trim();
if (required && stringValue.length() == 0) {
String stringValue = value.toString();
if (required && stringValue.trim().length() == 0) {
throw new IllegalArgumentException(name + " cannot be empty or null");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment