Changeset 3060 in josm


Ignore:
Timestamp:
28.02.2010 18:58:34 (2 years ago)
Author:
stoecker
Message:

fix help for missing pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r3043 r3060  
    280280                content = reader.fetchHelpTopicContent(url, true); 
    281281            } catch(MissingHelpContentException e1) { 
     282                this.url = url; 
    282283                handleMissingHelpContent(relativeHelpTopic); 
    283284                return; 
     
    310311            content = reader.fetchHelpTopicContent(url, true); 
    311312        } catch(MissingHelpContentException e) { 
     313            this.url = url; 
    312314            handleMissingHelpContent(absoluteHelpTopic); 
    313315            return; 
     
    406408 
    407409        public void actionPerformed(ActionEvent e) { 
    408             if (!getUrl().startsWith(HelpUtil.getWikiBaseHelpUrl())) { 
     410            String url = getUrl(); 
     411            if(url == null) 
     412                return; 
     413            if (!url.startsWith(HelpUtil.getWikiBaseHelpUrl())) { 
    409414                String message = tr( 
    410415                        "<html>The current URL <tt>{0}</tt><br>" 
     
    422427                return; 
    423428            } 
    424             String url = getUrl(); 
    425429            url = url.replaceAll("#[^#]*$", ""); 
    426430            OpenBrowser.displayUrl(url+"?action=edit"); 
Note: See TracChangeset for help on using the changeset viewer.