Skip to content

Commit 57f5c53

Browse files
author
synapticloop
committed
fixed empty length types for fields
1 parent b0aa9ff commit 57f5c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/synapticloop/h2zero/model/Table.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private void populateFields(JSONObject jsonObject) throws H2ZeroParseException {
173173
}
174174

175175
type = fieldObject.optString("type", null);
176-
if(null == type) {
176+
if(null == type || type.trim().length() == 0) {
177177
throw new H2ZeroParseException("No 'type' value found for field '" + fieldName + "'.");
178178
}
179179

0 commit comments

Comments
 (0)