mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
handled null pointer case caused by the last update
This commit is contained in:
parent
2b83c4bbf3
commit
39da7edf5a
@ -1330,9 +1330,17 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
|
||||
int sponseeCount = sponseeAddresses.size();
|
||||
|
||||
// get the registered nanmes of the sponsees
|
||||
// get the registered names of the sponsees
|
||||
ResultSet namesResultSet = getNamesResultSet(sponseeAddresses, sponseeCount);
|
||||
List<String> sponseeNames = getNames(namesResultSet, sponseeCount);
|
||||
|
||||
List<String> sponseeNames;
|
||||
|
||||
if( namesResultSet != null ) {
|
||||
sponseeNames = getNames(namesResultSet, sponseeCount);
|
||||
}
|
||||
else {
|
||||
sponseeNames = new ArrayList<>(0);
|
||||
}
|
||||
|
||||
// get the average balance of the sponsees
|
||||
ResultSet avgBalanceResultSet = getAverageBalanceResultSet(sponseeAddresses, sponseeCount);
|
||||
@ -1505,7 +1513,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
/**
|
||||
* Get Names
|
||||
*
|
||||
* @param namesResultSet the result set to get the names from
|
||||
* @param namesResultSet the result set to get the names from, can't be null
|
||||
* @param count the number of potential names
|
||||
*
|
||||
* @return the names
|
||||
|
Loading…
x
Reference in New Issue
Block a user