Skip to content
Snippets Groups Projects
Commit 227c93b2 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Handling empty fieldObservations

parent 79e2837f
Branches
Tags
No related merge requests found
...@@ -329,7 +329,7 @@ public class ModelResourceImpl implements ModelResource{ ...@@ -329,7 +329,7 @@ public class ModelResourceImpl implements ModelResource{
) )
); );
} }
else if(!List.class.isAssignableFrom(config.getConfigParameter("fieldObservations").getClass())) else if(config.getConfigParameter("fieldObservations") != null && !List.class.isAssignableFrom(config.getConfigParameter("fieldObservations").getClass()))
{ {
throw new ConfigValidationException("ERROR: fieldObservations must be of type array"); throw new ConfigValidationException("ERROR: fieldObservations must be of type array");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment