Project

General

Profile

« Previous | Next » 

Revision 544dc46c

Added by Patrick Plitzner about 5 years ago

Fix exception label for URI text elements

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/LsidWithExceptionLabelElement.java
39 39
	 */
40 40
	@Override
41 41
	public LSID getParsedText() throws Exception {
42
            return new LSID(super.getText());
42
            String uriText = super.getText();
43
            if(uriText!=null){
44
                return new LSID(uriText);
45
            }
46
            return null;
43 47
	}
44 48

  
45 49
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java
107 107
     */
108 108
    @Override
109 109
    protected URI getParsedText() throws Exception {
110
        return new URI(super.getText());
110
        String uriText = super.getText();
111
        if(uriText!=null){
112
            return new URI(super.getText());
113
        }
114
        return null;
111 115
    }
112 116

  
113 117
}

Also available in: Unified diff