You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2014/02/19 17:20:31 UTC
git commit: CLEREZZA-830: handling the case when no the list of
documentation graphs is empty
Repository: clerezza
Updated Branches:
refs/heads/master bb3c91a83 -> d110dfd4a
CLEREZZA-830: handling the case when no the list of documentation graphs is empty
Project: http://git-wip-us.apache.org/repos/asf/clerezza/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza/commit/d110dfd4
Tree: http://git-wip-us.apache.org/repos/asf/clerezza/tree/d110dfd4
Diff: http://git-wip-us.apache.org/repos/asf/clerezza/diff/d110dfd4
Branch: refs/heads/master
Commit: d110dfd4a1b643e7742b33c93cae7119379581ff
Parents: bb3c91a
Author: retobg <re...@apache.org>
Authored: Wed Feb 19 17:20:13 2014 +0100
Committer: retobg <re...@apache.org>
Committed: Wed Feb 19 17:20:13 2014 +0100
----------------------------------------------------------------------
.../clerezza/platform/documentation/DocumentationProvider.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/clerezza/blob/d110dfd4/platform.documentation/src/main/java/org/apache/clerezza/platform/documentation/DocumentationProvider.java
----------------------------------------------------------------------
diff --git a/platform.documentation/src/main/java/org/apache/clerezza/platform/documentation/DocumentationProvider.java b/platform.documentation/src/main/java/org/apache/clerezza/platform/documentation/DocumentationProvider.java
index f92dff8..3923a8b 100644
--- a/platform.documentation/src/main/java/org/apache/clerezza/platform/documentation/DocumentationProvider.java
+++ b/platform.documentation/src/main/java/org/apache/clerezza/platform/documentation/DocumentationProvider.java
@@ -265,6 +265,10 @@ public class DocumentationProvider implements WeightedTcProvider, BundleListener
private void createUnionGraph() {
MGraph[] docGraphs = bundle2DocGraphMap.values().
toArray(new MGraph[bundle2DocGraphMap.size()]);
- unitedDocumentations = new SimpleGraph(new UnionMGraph(docGraphs), true);
+ if (docGraphs.length > 0) {
+ unitedDocumentations = new SimpleGraph(new UnionMGraph(docGraphs), true);
+ } else {
+ unitedDocumentations = new SimpleGraph(new SimpleMGraph(), true);
+ }
}
}