Treat a blank identifier as null

This commit is contained in:
CalDescent
2021-11-12 08:59:43 +00:00
parent b6aa507b41
commit 056fc8fbaf
3 changed files with 55 additions and 1 deletions

View File

@@ -58,6 +58,11 @@ public class ArbitraryDataReader {
resourceId = resourceId.toLowerCase();
}
// If identifier is a blank string, treat it as null
if (identifier == "") {
identifier = null;
}
this.resourceId = resourceId;
this.resourceIdType = resourceIdType;
this.service = service;

View File

@@ -182,7 +182,7 @@ public class ArbitraryTransactionData extends TransactionData {
}
public String getIdentifier() {
return this.identifier;
return (this.identifier != "") ? this.identifier : null;
}
public Method getMethod() {