- NetconfDeviceCommunicator netconfDeviceCommunicator =
- userCapabilities.isPresent() ? new NetconfDeviceCommunicator(remoteDeviceId, device,
- new UserPreferences(userCapabilities.get(),
- Objects.isNull(node.getYangModuleCapabilities())
- ? false : node.getYangModuleCapabilities().isOverride(),
- Objects.isNull(node.getNonModuleCapabilities())
- ? false : node.getNonModuleCapabilities().isOverride()), rpcMessageLimit)
+ NetconfDeviceCommunicator netconfDeviceCommunicator = userCapabilities.isPresent()
+ ? new NetconfDeviceCommunicator(remoteDeviceId, device, new UserPreferences(userCapabilities.get(),
+ node.getYangModuleCapabilities() == null ? false : node.getYangModuleCapabilities().getOverride(),
+ node.getNonModuleCapabilities() == null ? false : node.getNonModuleCapabilities().getOverride()),
+ rpcMessageLimit)