Project

General

Profile

« Previous | Next » 

Revision 1e4c68b2

Added by Andreas Müller almost 2 years ago

ref #10089 handle null values for map and type designation value processor

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/processor/value/MapJSONValueProcessor.java
26 26
	public Object processArrayValue(Object value, JsonConfig jsonConfig) {
27 27

  
28 28
    	Map<?,?> map= (Map<?,?>)value;
29
		if( ! map.isEmpty()){
29
		if( map != null && ! map.isEmpty()){
30 30
		    JSONObject json = new JSONObject();
31 31
		    Object firstKey = map.keySet().iterator().next();
32 32
		    if(firstKey instanceof TypedEntityReference){

Also available in: Unified diff