|
@@ -885,6 +885,9 @@ public class ResourceLocalizationService extends CompositeService
|
|
Path publicDirDestPath =
|
|
Path publicDirDestPath =
|
|
publicRsrc.getPathForLocalization(key, publicRootPath,
|
|
publicRsrc.getPathForLocalization(key, publicRootPath,
|
|
delService);
|
|
delService);
|
|
|
|
+ if (publicDirDestPath == null) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (!publicDirDestPath.getParent().equals(publicRootPath)) {
|
|
if (!publicDirDestPath.getParent().equals(publicRootPath)) {
|
|
createParentDirs(publicDirDestPath, publicRootPath);
|
|
createParentDirs(publicDirDestPath, publicRootPath);
|
|
if (diskValidator != null) {
|
|
if (diskValidator != null) {
|
|
@@ -1175,10 +1178,11 @@ public class ResourceLocalizationService extends CompositeService
|
|
LocalResourcesTracker tracker = getLocalResourcesTracker(
|
|
LocalResourcesTracker tracker = getLocalResourcesTracker(
|
|
next.getVisibility(), user, applicationId);
|
|
next.getVisibility(), user, applicationId);
|
|
if (tracker != null) {
|
|
if (tracker != null) {
|
|
- ResourceLocalizationSpec resource =
|
|
|
|
- NodeManagerBuilderUtils.newResourceLocalizationSpec(next,
|
|
|
|
- getPathForLocalization(next, tracker));
|
|
|
|
- rsrcs.add(resource);
|
|
|
|
|
|
+ Path localPath = getPathForLocalization(next, tracker);
|
|
|
|
+ if (localPath != null) {
|
|
|
|
+ rsrcs.add(NodeManagerBuilderUtils.newResourceLocalizationSpec(
|
|
|
|
+ next, localPath));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
LOG.error("local path for PRIVATE localization could not be " +
|
|
LOG.error("local path for PRIVATE localization could not be " +
|