We need to return a null RODRecordList when the default value is null (as opposed to a list with a single null value), because that's what everyone is expecting.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1718 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
d4b40bc06f
commit
97105ac001
|
|
@ -67,15 +67,13 @@ public class RefMetaDataTracker {
|
||||||
return map.get(luName);
|
return map.get(luName);
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if ( defaultValue == null ) {
|
if ( defaultValue == null )
|
||||||
return new RODRecordList<ReferenceOrderedDatum>(luName, Collections.singletonList(defaultValue), null);
|
return null;
|
||||||
} else {
|
|
||||||
return new RODRecordList<ReferenceOrderedDatum>(defaultValue.getName(),
|
return new RODRecordList<ReferenceOrderedDatum>(defaultValue.getName(),
|
||||||
Collections.singletonList(defaultValue),
|
Collections.singletonList(defaultValue),
|
||||||
defaultValue.getLocation());
|
defaultValue.getLocation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @see this.lookup
|
* @see this.lookup
|
||||||
* @param name
|
* @param name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue