Browse Source

lwm2m: fix_bug LwM2M Resource path for Install Script is 'NULL'

pull/9182/head
nick 3 years ago
parent
commit
287a703371
  1. 2
      application/src/main/java/org/thingsboard/server/service/install/InstallScripts.java

2
application/src/main/java/org/thingsboard/server/service/install/InstallScripts.java

@ -282,13 +282,11 @@ public class InstallScripts {
doSaveLwm2mResource(tbResource); doSaveLwm2mResource(tbResource);
} catch (Exception e) { } catch (Exception e) {
log.error("Unable to load resource lwm2m object model from file: [{}]", path.toString()); log.error("Unable to load resource lwm2m object model from file: [{}]", path.toString());
throw new RuntimeException("resource lwm2m object model from file", e);
} }
} }
); );
} catch (Exception e) { } catch (Exception e) {
log.error("Unable to load resources lwm2m object model from file: [{}]", resourceLwm2mPath.toString()); log.error("Unable to load resources lwm2m object model from file: [{}]", resourceLwm2mPath.toString());
throw new RuntimeException("resource lwm2m object model from file", e);
} }
} }

Loading…
Cancel
Save