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

Dawid Weiss commented on LUCENE-9747:
-------------------------------------

I get this with openjdk 14.0.1+7:
{code}
javadoc: error - org.apache.lucene.util (package): javadocs are missing
C:\Work\apache\lucene-solr.master\lucene\core\src\java\org\apache\lucene\analysis\standard\StandardAnalyzer.java:84:
 javadoc empty but @Override declared, skipping.
... [lots more warnings]
{code}

But no NPE. Which Java version are you using?

> Missing package-info.java causes NPE in MissingDoclet.java
> ----------------------------------------------------------
>
>                 Key: LUCENE-9747
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9747
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: general/javadocs
>    Affects Versions: master (9.0)
>            Reporter: David Eric Pugh
>            Priority: Minor
>         Attachments: LUCENE-9747.patch
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> When running {{./gradlew :solr:core:javadoc}} discovered that if a package 
> directory is missing the {{package-info.java}} file you get a VERY cryptic 
> error:
>  
> {{javadoc: error - fatal error encountered: java.lang.NullPointerException}}
> {{javadoc: error - Please file a bug against the javadoc tool via the Java 
> bug reporting page}}
>  
> I poked around and that the {{MissingDoclet.java}} method call to 
> \{{reporter.print(Diagnostic.Kind.ERROR, element, fullMessage.toString());}} 
> was failing, due to the element having some sort of null in it.  I am 
> attaching a patch and a PR.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to