mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Changing the generic application retrieval to get the application ids
This fixes the issue caused due to retrieving the application details by submiting the device id, becasue at the first storing of the application, they are not stored agaist a device. It get's mapped later with the device. Hence it caused a null pointer
This commit is contained in:
parent
c57dec9f30
commit
0e3069b0da
@ -239,7 +239,7 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
|
||||
}
|
||||
if (!installedAppList.contains(application)) {
|
||||
installedApp = applicationDAO.getApplication(application.getApplicationIdentifier(),
|
||||
application.getVersion(), device.getId(), tenantId);
|
||||
application.getVersion(), tenantId);
|
||||
if (installedApp == null) {
|
||||
appsToAdd.add(application);
|
||||
} else {
|
||||
@ -255,7 +255,7 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
|
||||
// Getting the applications ids for the second time
|
||||
for (Application application : appsToAdd) {
|
||||
installedApp = applicationDAO.getApplication(application.getApplicationIdentifier(),
|
||||
application.getVersion(), device.getId(), tenantId);
|
||||
application.getVersion(), tenantId);
|
||||
application.setId(installedApp.getId());
|
||||
applicationsToMap.add(application);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user