Browse Source
Merge pull request #9182 from thingsboard/LwM2M_Resource_path_for_Install_Script_isNULL
[fix_bug][3.5.2] LwM2M Resource path for Install Script is 'NULL'
pull/9205/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
application/src/main/java/org/thingsboard/server/service/install/InstallScripts.java
|
|
|
@ -299,7 +299,7 @@ public class InstallScripts { |
|
|
|
} |
|
|
|
|
|
|
|
public void loadSystemLwm2mResources() { |
|
|
|
Path resourceLwm2mPath = Paths.get(dataDir, MODELS_LWM2M_DIR); |
|
|
|
Path resourceLwm2mPath = Paths.get(getDataDir(), MODELS_LWM2M_DIR); |
|
|
|
try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(resourceLwm2mPath, path -> path.toString().endsWith(InstallScripts.XML_EXT))) { |
|
|
|
dirStream.forEach( |
|
|
|
path -> { |
|
|
|
|