aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java b/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java
index 01944aee243..e8d6a330358 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java
@@ -47,7 +47,9 @@ public class FileDistributor {
*/
public FileReference sendUriToHosts(String uri, Collection<Host> hosts) {
FileReference reference = fileRegistry.addUri(uri);
- addToFilesToDistribute(reference, hosts);
+ if (reference != null) {
+ addToFilesToDistribute(reference, hosts);
+ }
return reference;
}