mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-11-03 20:17:53 +00:00 
			
		
		
		
	added NPE protection in OpensyncExternalIntegrationCloud for retrieving auto provisioning properties of the customer
This commit is contained in:
		@@ -713,7 +713,10 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            int customerId = ovsdbSession.getCustomerId();
 | 
					            int customerId = ovsdbSession.getCustomerId();
 | 
				
			||||||
            Customer customer = customerServiceInterface.getOrNull(customerId);
 | 
					            Customer customer = customerServiceInterface.getOrNull(customerId);
 | 
				
			||||||
            if (customer != null && customer.getDetails().getAutoProvisioning().isEnabled()) {
 | 
					            if (customer != null 
 | 
				
			||||||
 | 
					            		&& customer.getDetails()!=null 
 | 
				
			||||||
 | 
					            		&& customer.getDetails().getAutoProvisioning()!=null 
 | 
				
			||||||
 | 
					            		&& customer.getDetails().getAutoProvisioning().isEnabled()) {
 | 
				
			||||||
                Equipment equipmentConfig = getCustomerEquipment(apId);
 | 
					                Equipment equipmentConfig = getCustomerEquipment(apId);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (equipmentConfig == null) {
 | 
					                if (equipmentConfig == null) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user