Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2008-04-29 19:51:29 +0000
committerChris Goldthorpe2008-04-29 19:51:29 +0000
commit99832bcc4a336c2d4c4cdaf58005c9177db8cd3b (patch)
tree60e1dd8c36e47efcd1982e53fdd457be1ad59b9c /org.eclipse.help
parentd018ed52eaf549368ad1eaed4dd377ef7275996b (diff)
downloadeclipse.platform.ua-99832bcc4a336c2d4c4cdaf58005c9177db8cd3b.tar.gz
eclipse.platform.ua-99832bcc4a336c2d4c4cdaf58005c9177db8cd3b.tar.xz
eclipse.platform.ua-99832bcc4a336c2d4c4cdaf58005c9177db8cd3b.zip
No need to put null keys in the href to topic map
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java
index 7a29f14e6..c97016640 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java
@@ -69,7 +69,10 @@ public class Toc extends UAElement implements IToc {
* ITopic and stores in the given Map.
*/
private void createHref2TopicMapAux(Map map, ITopic topic) {
- map.put(topic.getHref(), topic);
+ String href = topic.getHref();
+ if (href != null) {
+ map.put(href, topic);
+ }
ITopic[] subtopics = topic.getSubtopics();
if (subtopics != null) {
for (int i=0;i<subtopics.length;++i) {

Back to the top