diff options
author | Olivier Lamy <olamy@apache.org> | 2012-06-01 23:47:14 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-06-01 23:47:14 +0000 |
commit | 096a4c0ed1d0d4e82c8ebf276554b2663d54cdec (patch) | |
tree | 698e02e72cbb00633221ba6ce18d1e5d2797963a | |
parent | 1141aca7ec7a1d91616d03dcf4f94a35d62baeaf (diff) | |
download | archiva-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
-rw-r--r-- | archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java | 5 |
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 ) { |