diff --git a/api/src/main/java/org/commonjava/indy/model/galley/CacheOnlyLocation.java b/api/src/main/java/org/commonjava/indy/model/galley/CacheOnlyLocation.java
index <HASH>..<HASH> 100644
--- a/api/src/main/java/org/commonjava/indy/model/galley/CacheOnlyLocation.java
+++ b/api/src/main/java/org/commonjava/indy/model/galley/CacheOnlyLocation.java
@@ -68,7 +68,7 @@ public class CacheOnlyLocation
     @Override
     public boolean allowsStoring()
     {
-        return !repo.isReadonly();
+        return repo != null && !repo.isReadonly();
     }
 
     @Override
prevent NPE in CacheOnlyLocation allowsStoring