[ 
https://issues.apache.org/jira/browse/ANY23-341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424433#comment-16424433
 ] 

ASF GitHub Bot commented on ANY23-341:
--------------------------------------

Github user lewismc commented on a diff in the pull request:

    https://github.com/apache/any23/pull/71#discussion_r178925133
  
    --- Diff: 
core/src/main/java/org/apache/any23/extractor/html/HTMLDocument.java ---
    @@ -375,15 +376,16 @@ public String getDefaultLanguage() {
     
         private java.net.URI getBaseIRI() throws ExtractionException {
             if (baseIRI == null) {
    +            String uri = (document instanceof Document ? 
(Document)document : document.getOwnerDocument()).getDocumentURI();
                 try {
    -                if (document.getBaseURI() == null) {
    -                    log.warn("document.getBaseURI() is null, this should 
not happen");
    +                if (uri == null) {
    +                    log.warn("document.getBaseURI() is null, this should 
not happen", new Exception());
    --- End diff --
    
    Can the Exception be more specific?


> Remove dependency on defunct commons-httpclient 3.1
> ---------------------------------------------------
>
>                 Key: ANY23-341
>                 URL: https://issues.apache.org/jira/browse/ANY23-341
>             Project: Apache Any23
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 2.2
>            Reporter: Hans Brende
>            Priority: Minor
>             Fix For: 2.3
>
>
> commons-httpclient has been replaced by httpcomponents. It was last updated 
> back in 2007. We should remove this dependency.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to