mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing the null pointer
This commit is contained in:
parent
239a27f5b0
commit
3e42cf426f
@ -241,11 +241,13 @@ public class DeviceTypePluginDAOImpl implements PluginDAO{
|
||||
}
|
||||
|
||||
private String getPropertString(List<Device.Property> properties, String propertyName) {
|
||||
if (properties != null) {
|
||||
for (Device.Property property : properties) {
|
||||
if (property.getName() != null && property.getName().equals(propertyName)) {
|
||||
return property.getValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user