}
public void apply_on_device (RootDevice device,
- string template_path) throws Error {
+ string? template_path) throws Error {
if (!device.get_device_type ().has_prefix (DMS)) {
return;
}
+ if (template_path == null) {
+ return;
+ }
+
var description_file = new DescriptionFile (template_path);
description_file.set_device_type (DMS_V1);
description_file.modify_service_type (ContentDirectory.UPNP_TYPE,
}
public void apply_on_device (RootDevice device,
- string template_path) throws Error {
+ string? template_path) throws Error {
if (!device.get_device_type ().has_prefix (DMS)) {
return;
}
+ if (template_path == null) {
+ return;
+ }
+
var description_file = new DescriptionFile (template_path);
description_file.set_model_name (MODEL_NAME);
description_file.set_model_number (MODEL_VERSION);