Skip to content

Commit 5259513

Browse files
committed
Don't post invalid 'rangeURI' to server
SVN r65215 |2020-03-09 19:31:40 +0000
1 parent fd5db64 commit 5259513

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/src/org/labkey/remoteapi/domain/PropertyDescriptor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public JSONObject toJSONObject(boolean forProtocol)
101101
result.put("mvEnabled", _mvEnabled);
102102
result.put("dimension", _dimension);
103103
result.put("propertyURI", _propertyURI);
104-
result.put("rangeURI", _rangeURI);
104+
105+
if (_rangeURI != null)
106+
result.put("rangeURI", _rangeURI);
105107

106108
if (_lookupQuery != null && _lookupSchema != null)
107109
{

0 commit comments

Comments
 (0)