aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-06-01 23:47:14 +0000
committerOlivier Lamy <olamy@apache.org>2012-06-01 23:47:14 +0000
commit096a4c0ed1d0d4e82c8ebf276554b2663d54cdec (patch)
tree698e02e72cbb00633221ba6ce18d1e5d2797963a /archiva-modules/plugins
parent1141aca7ec7a1d91616d03dcf4f94a35d62baeaf (diff)
downloadarchiva-096a4c0ed1d0d4e82c8ebf276554b2663d54cdec.tar.gz
archiva-096a4c0ed1d0d4e82c8ebf276554b2663d54cdec.zip
prevent NPE
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1345396 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
index 2665e8679..0ad272528 100644
--- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
@@ -413,6 +413,11 @@ public class JcrMetadataRepository
Node root = getJcrSession().getRootNode();
Node node = root.getNode( getFacetPath( repositoryId, facetId, name ) );
+ if ( metadataFacetFactories == null )
+ {
+ return metadataFacet;
+ }
+
MetadataFacetFactory metadataFacetFactory = metadataFacetFactories.get( facetId );
if ( metadataFacetFactory != null )
{