diff options
author | Chris Goldthorpe | 2008-04-29 19:51:29 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2008-04-29 19:51:29 +0000 |
commit | 99832bcc4a336c2d4c4cdaf58005c9177db8cd3b (patch) | |
tree | 60e1dd8c36e47efcd1982e53fdd457be1ad59b9c /org.eclipse.help | |
parent | d018ed52eaf549368ad1eaed4dd377ef7275996b (diff) | |
download | eclipse.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.java | 5 |
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) { |