mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Treat a blank identifier as null
This commit is contained in:
@@ -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;
|
||||
|
@@ -182,7 +182,7 @@ public class ArbitraryTransactionData extends TransactionData {
|
||||
}
|
||||
|
||||
public String getIdentifier() {
|
||||
return this.identifier;
|
||||
return (this.identifier != "") ? this.identifier : null;
|
||||
}
|
||||
|
||||
public Method getMethod() {
|
||||
|
Reference in New Issue
Block a user