mirror of
				https://github.com/Qortal/qortal.git
				synced 2025-11-04 08:47:02 +00:00 
			
		
		
		
	handled null pointer case caused by the last update
This commit is contained in:
		@@ -1330,9 +1330,17 @@ public class HSQLDBAccountRepository implements AccountRepository {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		int sponseeCount = sponseeAddresses.size();
 | 
							int sponseeCount = sponseeAddresses.size();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// get the registered nanmes of the sponsees
 | 
							// get the registered names of the sponsees
 | 
				
			||||||
		ResultSet namesResultSet = getNamesResultSet(sponseeAddresses, sponseeCount);
 | 
							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
 | 
							// get the average balance of the sponsees
 | 
				
			||||||
		ResultSet avgBalanceResultSet = getAverageBalanceResultSet(sponseeAddresses, sponseeCount);
 | 
							ResultSet avgBalanceResultSet = getAverageBalanceResultSet(sponseeAddresses, sponseeCount);
 | 
				
			||||||
@@ -1505,7 +1513,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Get Names
 | 
						 * 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
 | 
						 * @param count the number of potential names
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
	 * @return the names
 | 
						 * @return the names
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user