forked from Qortal/qortal
Fixed exception when identifier is null. Also handling null names as this may be a future scenario.
This commit is contained in:
parent
c65a63fc7e
commit
badb576991
@ -338,9 +338,12 @@ public class ArbitraryDataStorageManager extends Thread {
|
|||||||
// Loop through cached hostedTransactions
|
// Loop through cached hostedTransactions
|
||||||
for (ArbitraryTransactionData atd : this.hostedTransactions) {
|
for (ArbitraryTransactionData atd : this.hostedTransactions) {
|
||||||
try {
|
try {
|
||||||
|
if (atd.getName() != null && atd.getName().toLowerCase().contains(this.searchQuery)) {
|
||||||
if(atd.getName().toLowerCase().contains(this.searchQuery) || atd.getIdentifier().toLowerCase().contains(this.searchQuery))
|
|
||||||
searchResultsList.add(atd);
|
searchResultsList.add(atd);
|
||||||
|
}
|
||||||
|
else if (atd.getIdentifier() != null && atd.getIdentifier().toLowerCase().contains(this.searchQuery)) {
|
||||||
|
searchResultsList.add(atd);
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user